[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Restart on if something changed?
From: |
Atom Powers |
Subject: |
Re: Restart on if something changed? |
Date: |
Thu, 26 Jan 2006 09:10:18 -0800 |
copy the new file at night, and define a class to restart sshd.
--
copy:
Hr01::
${masterfiles}/${ssh_banner}
dest=${ssh_banner}
define=newsshd
shellcommands:
newsshd::
"${restart_scripts}/sshd restart"
--
On 1/26/06, PAUL WILLIAMSON <pwilliamson@mandtbank.com> wrote:
> How can I tell a process to restart only if a certain file has changed?
>
> We just changed the way our login banners are supposed to occur.
> Before, they appeared prior to login, so I could just use the
> sshd_config file and specify an banner in the file. Now, I need
> to present the banner after login. In order to do this, I need to
> restart sshd. But, I don't want to restart sshd during the
> middle of the day or when the sshd_config file hasn't changed.
>
> Paul
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
>
--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
- Restart on if something changed?, PAUL WILLIAMSON, 2006/01/26
- Re: Restart on if something changed?, Brendan Strejcek, 2006/01/26
- Re: Restart on if something changed?, Marco van Beek, 2006/01/26
- Re: Restart on if something changed?, Luis Cerezo, 2006/01/26
- Re: Restart on if something changed?, Jason Martin, 2006/01/26
- Re: Restart on if something changed?, Doug Chapman, 2006/01/26
- Re: Restart on if something changed?,
Atom Powers <=
- Re: Restart on if something changed?, Mark Burgess, 2006/01/27