[PVE-User] rc.local - problem

lord_Niedzwiedz sir_Misiek1 at o2.pl
Thu May 16 12:28:29 CEST 2019


sudo vi /etc/systemd/system/rc-local.service

[Unit]
  Description=/etc/rc.local Compatibility
  ConditionPathExists=/etc/rc.local

[Service]
  Type=forking
  ExecStart=/etc/rc.local start
  TimeoutSec=0
  StandardOutput=tty
  RemainAfterExit=yes
  SysVStartPriority=99

[Install]
  WantedBy=multi-user.target

Save and close the file. Make sure /etc/rc.local file is executable.

sudo chmod +x /etc/rc.local

After that, enable the service on system boot:

sudo systemctl enable rc-local

Now start the service and check its status:

sudo systemctl start rc-local.service


And I taked:

systemctl start rc-local.service
Job for rc-local.service failed because the control process exited with 
error code.
See "systemctl status rc-local.service" and "journalctl -xe" for details.
root at louve:~# systemctl status rc-local.service
● rc-local.service - /etc/rc.local Compatibility
    Loaded: loaded (/etc/systemd/system/rc-local.service; enabled; 
vendor preset: enabled)
   Drop-In: /lib/systemd/system/rc-local.service.d
            └─debian.conf
    Active: failed (Result: exit-code) since Thu 2019-05-16 12:26:04 
CEST; 8s ago
   Process: 4738 ExecStart=/etc/rc.local start (code=exited, 
status=203/EXEC)
       CPU: 829us

May 16 12:26:04 louve systemd[1]: Starting /etc/rc.local Compatibility...
May 16 12:26:04 louve systemd[1]: rc-local.service: Control process 
exited, code=exited status=203
May 16 12:26:04 louve systemd[1]: Failed to start /etc/rc.local 
Compatibility.
May 16 12:26:04 louve systemd[1]: rc-local.service: Unit entered failed 
state.
May 16 12:26:04 louve systemd[1]: rc-local.service: Failed with result 
'exit-code'.




More information about the pve-user mailing list