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] _________________________________________________ tmda-workers mailing list ([email protected]) http://tmda.net/lists/listinfo/tmda-workers
