I am playing around with a sendmail milter called relay-delay
(greylisting) and I want to try to run this as much as possible out of a
user shell (good luck I guess...it's still rather alpha).
Problem #1 - it's a perl process...
root 1689 0.0 1.2 51496 6412 pts/0 S 01:42
0:02 /usr/bin/perl -w /root/relaydelay-0.04/relaydelay.pl
so first I want to kill it - (i.e. stop script)
kill -15 1689 (seems gentle enough of a kill, drops connection to mysql
db)
so now I want to script it...
/bin/ps aux|grep relaydelay|cut -c9-14|/usr/bin/xargs -n 1 /bin/kill -15
seems like a lot of work to go through but it seems to work...anyone see
a problem here? (note use of cut command - first usage on my own, thanks
to many pluggers)
Problem #2 - starting it - it's a perl process...
I can launch it with /root/relaydelay-0.04/relaydelay.pl &
probably want 2>&1 > /dev/null
is there a better / more faceless way to deal with it?
I really want it to run it as a daemon but am too uneducated to get
there.
Craig
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss