[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to restart daemons on redhat|fedora??
From: |
Wil Cooley |
Subject: |
Re: How to restart daemons on redhat|fedora?? |
Date: |
Fri, 02 Jul 2004 11:58:21 -0700 |
On Fri, 2004-07-02 at 11:48, Guolin Cheng wrote:
> Hi, all,
>
>
>
> Got a silly question on how to restart daemons using
> “/etc/init.d/<service> restart” through cfengine…
>
>
>
> The question can be detailed as: After a new configuration is ready
> and pushed out to clients by means of cfengine, how to setup cfengine
> to restart daemons through “/etc/init.d/<serviceDaemonScript>
> restart|reload” shell commands. The existing “restart <shell command>”
> substatement in processes section doesn’t help a lot since it requires
> the matched processes should die hard first according to manual. The
> following are cut from references:
Also, for cases where the process isn't running:
processes:
# Make sure these processes are always running
redhat::
"cfexecd$" restart "/sbin/service cfexecd restart" useshell=dumb
"cfenvd" restart "/sbin/service cfenvd restart" useshell=dumb
redhat.cfengine_server::
"cfservd" restart "/sbin/service cfservd restart" useshell=dumb
Wil
--
Wil Cooley wcooley@nakedape.cc
Naked Ape Consulting http://nakedape.cc