help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restarting services


From: Chip Seraphine
Subject: Re: Restarting services
Date: Thu, 22 Jan 2004 09:35:50 -0600
User-agent: KMail/1.5

Well, you can use the 'restart' option with a processes: stanza, but I think 
you are really looking for a way to restart from a list, right?

Shellcommands doesn't support iterators (AFAIK), so your best bet is probably 
longhand.  You could do something cute with a variable containing a list or a 
module, but that would carry a cost in transparency.

'course, so does generating code from a template....

On Wednesday 21 January 2004 23:44, Systems Administrator wrote:
> Hi all.  Does cfengine have something to simplify the following
> situation?
>
> -----
> shellcommands:
>         # Restart services if config has changed
>         syslogngrestart::
>                 "/sbin/service syslog-ng restart"
>         sshdrestart::
>                 "/sbin/service sshd restart"
>         iptablesrestart::
>                 "/sbin/service iptables restart"
>         networkrestart::
>                 "/sbin/service network restart"
> .
> .
> .
> .
> -----
>
>       Is there something I'm missing?  If not, I'll probably just
> generate the cfengine config from a template :).
>
>       Thanks again,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]