restarting services if config files were changed
Andreas Schuldei
andreas+linux-fai at schuldei.org
Mon Sep 28 21:29:44 CEST 2009
hi!
i am in the process to create infrastructure for restarting
services which configuration files changed in the current
softupdate run.
currently i plan to set a flag (in an environment variable like
RESTART_FOO). since different services have different
restart/reload/whatnot commands i plan to put the restart/reload
command INTO the variable like this:
RESTART_FOO="/etc/init.d/FOO restart"
In scripts/LAST/50-restart-services i would find all RESTART_*
variables i defined in the softupdate run and would just eval
them in a for loop.
did someone build something similar?
what are the cheavlets?
is this the best way to do this? can it be done better?
/andreas
More information about the linux-fai
mailing list