On 7/18/22 09:00, Peter Boy wrote:
I have to run some scripts at the end of the boot process to establish various workarounds for bugs in systemd. In the days of System V, /etc/rc.d/rc.local would be the right place for this.
My research revealed several solutions with conflicting recommendations:
(a)
There is - also in Fedora - systemd-rc-local service. In the man file it is advised not to use it. A Fedora default installation also does not completely create the necessary directory structure. And if one wants to execute this service as far as possible at the end of the boot process, further adjustments are necessary.
(b)
There is the DIY suggestion to create a service of one's own, and to place it as far as possible at the end of the system start.
(c)
A suggestion is to insert in the root-crontab at the end
@reboot systemctl start ….
The latter seems to be the most reliable solution at the moment.
/etc/rc.local must be set executable
If I remember correctly, systemd will execute rc-local.service which
checks for /etc/rc.local then checks if it is executable. If so, it
executes /etc/rc.local.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure