[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional restart
From: |
Alan Sparks |
Subject: |
Re: Conditional restart |
Date: |
13 Feb 2003 13:57:00 -0700 |
Define a class iff the file is copied. Something like:
copy:
/etc/syslog.conf
dest=/etc/syslog.conf
server=$(masterserver)
mode=644
define=RestartSyslogd
shellcommands:
RestartSyslogd::
"/bin/pkill -9 syslogd"
"/usr/sbin/syslogd"
On Thu, 2003-02-13 at 13:45, Manon Goo wrote:
> Hello,
>
> Is there an solution to condition the restart of a service ? I would like
> to copy (and edit) the syslog.conf and postfix config from a central host
> an only restart syslog and config if syslogd.conf changes. I would only
> like to restart postfix if main.cf or master.cf is changed
>
>
> Manon Goo
> ----
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
--
Alan Sparks, Sr. UNIX Administrator asparks@quris.com
Quris, Inc. (720) 836-2058