Re: verify service running

2011-03-04 Thread Jesse Becker
On Wed, Nov 10, 2010 at 06:53:56PM -0500, Sandra Wittenbrock wrote: >Hi, > >What would be the command to make sure a service (sysctl, firewall, etc) >is running, and/or restart it when cfengine updates the config files? I just recently added this snippet for checking a service that may be "runnin

Re: verify service running

2011-03-04 Thread Aleksey Tsalolikhin
On Fri, Mar 4, 2011 at 4:22 AM, Jonathan Clarke wrote: > > I have [...] become maniacal about always > using the full path name of an executable in processes promises, eg: > > processes: >        "/usr/sbin/cupsd" >                etc > > This avoids the "mycupsarefull" problem, and the > more-com

Cfengine Help: Re: verify service running

2011-03-04 Thread no-reply
Forum: Cfengine Help Subject: Re: verify service running Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19200,20956#msg-20956 There is an overlap in configuration management and monitoring but there is also a difference. Monitoring reports trouble. Configuration

Re: verify service running

2011-03-04 Thread Jonathan Clarke
Hi Aleksey, On 11/11/10 00:34, Aleksey Tsalolikhin wrote: > check that CUPS (printer service) is running by checking the "ps" output, and > if regex match for "cups" fails, restarting cups: > > --- start cfengine config > body common control > > { > bundlesequence => { "check_cups_running"

Cfengine Help: Re: verify service running

2011-02-28 Thread no-reply
Forum: Cfengine Help Subject: Re: verify service running Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19200,20862#msg-20862 Only if the class sshd_reconfigured is defined. Cfengine passes through each bundle three times to account for ordering and new class

Cfengine Help: Re: verify service running

2011-02-28 Thread no-reply
Forum: Cfengine Help Subject: Re: verify service running Author: hharun Link to topic: https://cfengine.com/forum/read.php?3,19200,20861#msg-20861 Correct me if I am wrong.. With this code: > files: >"/etc/ssh/sshd_config" > copy_from => my_scp(&qu

Re: verify service running

2010-11-13 Thread Aleksey Tsalolikhin
On Wed, Nov 10, 2010 at 10:40 PM, Seva Gluschenko wrote: > Alexey, take it easier > > Usually if you're restarting a service upon its configuration file(s) > change, you put those files under Cfengine management as well, so that > Sandra's question about files is being solved pretty easy like > >

Cfengine Help: Re: verify service running

2010-11-11 Thread no-reply
Forum: Cfengine Help Subject: Re: verify service running Author: demostat Link to topic: https://cfengine.com/forum/read.php?3,19200,19208#msg-19208 Hi, My two cents, an example for debian... if listed service-s (ssh, ntp, etc) are not running, start them vars: debian

Re: verify service running

2010-11-10 Thread Seva Gluschenko
Alexey, take it easier Usually if you're restarting a service upon its configuration file(s) change, you put those files under Cfengine management as well, so that Sandra's question about files is being solved pretty easy like files: "/etc/ssh/sshd_config" copy_from => my_scp("$(

Re: verify service running

2010-11-10 Thread Aleksey Tsalolikhin
On Wed, Nov 10, 2010 at 3:53 PM, Sandra Wittenbrock wrote: > Hi, > > What would be the command to make sure a service (sysctl, firewall, etc) > is running, and/or restart it when cfengine updates the config files? Here is what I use on a Linux server - if somebody has a better way, I would love t

verify service running

2010-11-10 Thread Sandra Wittenbrock
Hi, What would be the command to make sure a service (sysctl, firewall, etc) is running, and/or restart it when cfengine updates the config files? Thank you, Sandra ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman