[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Restarting services
From: |
Mark . Burgess |
Subject: |
Re: Restarting services |
Date: |
Thu, 22 Jan 2004 23:43:09 +0100 (MET) |
Shellcommands does support iterators, as in the documentation.
M
On 22 Jan, Chip Seraphine wrote:
> 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,
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~