Re: tofmipd.init script under FC3
Tim Rice <[email protected]> Tue, 27 Feb 2007 09:33:29 -0800 (PST)
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 26 Feb 2007, Stephen Warren wrote: > Specifically, "service tofmipd start" works just fine, but "service > tofmipd stop" fails to kill any processes. > > This is because the killproc function runs pidof to find the PID of the > tmda-ofmipd process. However, since this is a Python process: > > pidof tmda-ofmipd returns nothing > pidof python returns the appopriate PIDs, and more! > > Do you have any idea how this can be fixed? I'm running under FC3, so > perhaps this works better in more recent versions of FC? Something like NAME=tmda-ofmipd [ -s /var/run/$NAME.pid ] && kill -15 `cat /var/run/$NAME.pid` ret=$? [ $ret = 0 ] && rm /var/run/$NAME.pid -- Tim Rice Multitalents (707) 887-1469 [email protected]