Stephen Warren wrote:
> 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
>
Ugg. Nice. Can't depend on pidof. I can't even imagine how many
things that breaks.
Your fix seems reasonable to me. I'm guessing that your "status"
command is b0rked as well.
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers