[systemd-devel] rc-local.service and its future in systemd?

Aki Ketolainen akik at mykolab.com
Mon Apr 24 10:52:48 UTC 2023


> > I tried to set After=systemd-update-utmp-runlevel.service but I got some cyclic dependency problem. Would you know how to do that?
> >
> > Best regards,
> >
> > Aki
> >
> This totally depends on the unit you wrote. Without it, we can't help. 
> In general, ignore and forget the run level concept.
> 
> BR
> Silvio

I only changed these settings in rc-local.service:

[Unit]
After=systemd-update-utmp-runlevel.service

[Install]
WantedBy=default.target

and disabled 
/usr/lib/systemd/system-generators/systemd-rc-local-generator from 
running.
When I tried to boot, the system didn't come up any more.

Best regards,

Aki


More information about the systemd-devel mailing list