[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: running nohupped commands
From: |
Wheeler, John |
Subject: |
RE: running nohupped commands |
Date: |
Fri, 15 Aug 2003 11:28:38 -0500 |
Sometime you have to ask cfengine to die:
http://www.cfengine.org/docs/cfengine-Reference.html#processes
Although this directive is only present in the process section, it is
valid for shell commands as well.
I have to use it here:
shellcommands:
'/export/home/mysql/scripts/mysql.server stop;echo cfengine-die'
-----Original Message-----
From: Mark Price [mailto:elm@jimini.org]
Sent: Friday, August 15, 2003 10:48 AM
To: elm@jimini.org
Cc: help-cfengine@gnu.org
Subject: running nohupped commands
Hi, there
It seems this basic message has already been sent, but it didn't show up
in my mailbox, so here's the rerun.
First, introduction
I'm using debian and cfengine to run a network of weather sensors for
the Applied Global Systems Lab at UNF.
I've been trying to get cfengine to take over doing a stop-start on some
processes that are running under the nohup command, but so far have been
unsuccessful.
I'm using the "shellcommands" group. Every attempt has had the result
that a manual run of cfagent --no-splay never dies until I kill the
shell commands I have run, and that the commands weren't actually
working properly, some of them died and nohup.out was not being written
to.
My first attempt was to just run the command, which just failed.
My second attempt was "command owner=0 group=0", since that's what it
needed (output said it was running as
uid=gid=-1).
My third attempt was "command owner=0 group=0 useshell=false
preview=false inform=false"
My fourth attempt was "detachtty pipename command"
My fifth attempt: "screen -dmS pipename command"
Is there another strategy I can take?
Thanks
Mark Price
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://mail.gnu.org/mailman/listinfo/help-cfengine
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: running nohupped commands,
Wheeler, John <=