You are not logged in.

#1 2021-08-22 06:39:54

shmu26
Member
Registered: 2021-04-17
Posts: 56

[SOLVED] Failed to start /etc/rc.local Compatibility

At system startup I see the error message in the title line.

When I run

sudo systemctl status rc-local

I get


× rc-local.service - /etc/rc.local compatibility
     Loaded: loaded (/etc/systemd/system/rc-local.service; enabled; vendo>
     Active: failed (Result: exit-code) since Sun 2021-08-22 09:24:23 IDT>
   Main PID: 407 (code=exited, status=203/EXEC)
        CPU: 390us

Aug 22 09:24:23 shmuel-arch systemd[1]: Starting /etc/rc.local compatibil>
Aug 22 09:24:23 shmuel-arch systemd[407]: rc-local.service: Failed to exe>
Aug 22 09:24:23 shmuel-arch systemd[407]: rc-local.service: Failed at ste>
Aug 22 09:24:23 shmuel-arch systemd[1]: rc-local.service: Main process ex>
Aug 22 09:24:23 shmuel-arch systemd[1]: rc-local.service: Failed with res>
Aug 22 09:24:23 shmuel-arch systemd[1]: Failed to start /etc/rc.local com>
Aug 22 09:34:47 shmuel-arch systemd[1]: /etc/systemd/system/rc-local.serv>
lines 1-13/13 (END)

When I run

sudo systemctl enable rc-local

I get no error.


The file "/etc/systemd/system/rc-local.service" contains:



[Unit]
Description=/etc/rc.local compatibility
ConditionFileIsExecutable=/etc/rc.d/rc.local

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

[Install]
WantedBy=multi-user.target

Last edited by shmu26 (2021-08-22 07:24:26)

Offline

#2 2021-08-22 06:45:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Failed to start /etc/rc.local Compatibility

Why do you have this service on your system?

And read the wiki journalctl entry for how to post untruncated journal lines.

Last edited by jasonwryan (2021-08-22 06:46:25)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-08-22 07:30:48

shmu26
Member
Registered: 2021-04-17
Posts: 56

Re: [SOLVED] Failed to start /etc/rc.local Compatibility

jasonwryan wrote:

Why do you have this service on your system?

Thanks.
I probably created it when I was trying various ways to make a command run as root at system startup. But now I don't have any custom scripts I want to run, so I removed the service.

Offline

Board footer

Powered by FluxBB