Skip to main content
Topic: [News] 66 now supports /etc/local.d (Read 440 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[News] 66 now supports /etc/local.d

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):
  • First the /etc/local.d/*.start scripts get executed (in glob order; see execline: the elglob command and glob); /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):
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.