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&AQ: What gets executed first?A: The ordering on
local-rc start (typically after boot):
- First the /etc/local.d/*.start scripts get executed (in glob order; see execline: the elglob command (https://skarnet.org/software/execline/elglob.html) and glob (https://pubs.opengroup.org/onlinepubs/9699919799/functions/glob.html)); /etc/local.d/local.start from artix-branding-base executes /etc/rc.local,
- Then the ${script_file} (by default /etc/66/rc.local) gets executed.
The ordering on
local-rc stop (typically before shutdown or reboot):
- The /etc/local.d/*.stop scripts get executed (in glob order).
Q: Globbing /etc/local.d/*.{start,stop} slows down my boot!A: The service
local-rc can be turned off (as root):
# 66-env -t boot -e /usr/bin/vim boot@system
then change
LOCAL=!yes (careful: not
LOCALE) to
LOCAL=!no and:
# 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).