help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: troubles with process handling


From: Paul Krizak
Subject: Re: troubles with process handling
Date: Thu, 19 Jan 2006 12:54:23 -0600
User-agent: Thunderbird 1.5 (X11/20051201)

Process statements require a signal, AFAIK. You might try using a benign signal like HUP (if your process doesn't respond to HUP) so that you don't kill or restart the process, but the class definition works anyway.

I've never used processes: in this way before, however, so I'm not sure.

You can get a list of signals you can send to a process by running 'kill -l'.

Some benign signals that come to mind are SIGCONT (continue), SIGALRM (alarm clock), SIGURG (???)...there's bound to be a signal you can use that your processes simply ignore.

Paul Krizak                         5900 E. Ben White Blvd. MS 625
Advanced Micro Devices              Austin, TX  78741
Linux/Unix Systems Engineering      Phone: (512) 602-8775
Microprocessor Solutions Sector


Guillaume Rousse wrote:
I'd like to manage process on clients to make sure some processes are
running, and some others are not. I don't want to send processes signals
directly, I prefer to use system service scripts, so as to take care of
lock file, etc... I once used restart facility, allowing to launch a
shell command, but only if a signal was not found, thus unable to deal
with shutting down processes.

I tries to use the define and elsedefine facilities, in a similar manner
as I do for managing installed packages. However, it appears to trigger
errors in cfengine.

The following syntax:
"sshd" elsedefine=need_start_sshd

triggers the following error message:
Insufficient or incomplete processes statement

I tested it with cfengine 2.1.12 and 2.1.15.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]