Re: tofmipd.init script under FC3
Bernard Johnson <[email protected]> Tue, 27 Feb 2007 14:09:48 -0700
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
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.