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.



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to