-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bernard Johnson wrote:
> Stephen Warren wrote:
>> 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!
>>
> 
> What are you seeing (specifically) that makes you think it doesn't work?
> Does it just not kill the process?  Generate a trace (see below).
> 
> By the way, at least on my FC6 box, it runs
> 
> pidof -x /usr/bin/tmda-ofmipd
> pidof -x tmda-ofmipd

On FC3, even with the -x option, pidof doesn't find any PIDs; it's
always just looking at the command (python) and not the script name
(tmda-ofmipd).

There is a bug in RH bugzilla regarding this, which apparently applied
to CentOS 3, and triggered an updated sysvinit package to fix this. I
haven't tracked down whether this particular bug report/patch applies to
FC3 or not.

Anyway, I just replaced the kill command in the init script with this
and it's working:

ps auxww|grep ${program}|grep -v grep|awk '{print $2}'|xargs kill

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5GB6hk3bo0lNTrURAlSQAJ9gPFnkqkWoARdfBLEbIUml4j603gCfYXH5
JkBmzO7Lf6XhQUiIb2JSrJI=
=QxmW
-----END PGP SIGNATURE-----
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to