[systemd-devel] rc-local.service and its future in systemd?
killermoehre at gmx.net
killermoehre at gmx.net
Mon Apr 24 10:59:21 UTC 2023
Am 24.04.2023 um 12:52 schrieb Aki Ketolainen <akik at mykolab.com>:
>> 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.
Well, you created a circular dependency. Just don't use the rc-local.service at all, but put the commands from there in their own .service units. Think about their dependencies and order Proper with Wants=, Before= and After=.
If you're able to share your rc.local script, than we can help.
More information about the systemd-devel
mailing list