Artix Linux Forum

Init systems => suite66-archived => Topic started by: strajder on 14 January 2022, 14:49:23

Title: [News] 66 now supports /etc/local.d
Post by: strajder on 14 January 2022, 14:49:23
With the update to suite66-scripts pushed today, in addition to /etc/66/rc.local being executed by the local-rc service, it will now also execute scripts from /etc/local.d/*.start when starting that service and /etc/local.d/*.stop when stopping it. Mentioned scripts will only be executed if they are executable (test -x).

Side effect of this update is that 66 will now execute /etc/rc.local on startup, consistent with the other init systems supported by Artix.

Q&A

Q: What gets executed first?
A: The ordering on local-rc start (typically after boot):
The ordering on local-rc stop (typically before shutdown or reboot):

Q: Globbing /etc/local.d/*.{start,stop} slows down my boot!
A: The service local-rc can be turned off (as root):
Code: [Select]
# 66-env -t boot -e /usr/bin/vim boot@system
then change LOCAL=!yes (careful: not LOCALE) to LOCAL=!no and:
Code: [Select]
# 66-enable -t boot -F boot@system


Update: Added Q&A. Updating 66 wiki page planned.

Update 2: Added a section in the wiki page (https://wiki.artixlinux.org/Main/Suite66#t.2Fetc.2Flocal.d_and_.2Fetc.2Frc.local).