|
From: | Alexander Mattausch |
Subject: | Re: trigger process if file copied |
Date: | Wed, 12 Feb 2003 15:10:45 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021130 |
Paul Heinlein schrieb:
Yeah, it's pretty simple. Here's how I handle an analogous situation with ntp configuration updates on our Red Hat Linux clients. When the config is updates, I define a class called 'restartntp,' which is merely calls Red Hat's init script in restart mode.copy: linux.redhat.ntp_pclient:: $(master_configs)/ntp/ntp.conf.linux server=$(policyhost) dest=/etc/ntp.conf m=444 o=root g=root type=sum define=restartntp shellcommands: linux.redhat.restartntp:: "/etc/init.d/ntpd restart"
and don't forget control: AddInstallable = ( restartntp ) Regards, Alex
[Prev in Thread] | Current Thread | [Next in Thread] |