restarting services if config files were changed

Darshaka Pathirana dpat at syn-net.org
Wed Sep 30 00:56:36 CEST 2009


On 09/29/2009 01:38 PM, Thomas Lange wrote:
>>>>>> On Mon, 28 Sep 2009 21:29:44 +0200, Andreas Schuldei <andreas+linux-fai at schuldei.org> said:
> 
>     > 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"
> 
> You may want to use the postinst script of fcopy(8) to write the
> variables to a file. This postinst script will only be executed, if
> fcopy changed the target file.

Ok. But there is nothing like that for ainsl(1), right? (Would be
nice if I'm wrong ;))

Greetings,
 - Darsha



More information about the linux-fai mailing list