NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How can I stop a script running as "deamon" from rc.d?



On Sun, Dec 26, 2010 at 5:47 PM, Jean-Yves Migeon
<jeanyves.migeon%free.fr@localhost> wrote:
> On 26.12.2010 17:19, IT geek 31 wrote:
>> How about "pkill *keepalive*" ?
>
> Ugly:
>
> - always risk name collision, and this is especially bad as rc scripts
> are run as root. You can end up killing programs you didn't want to, or
> that you did not start through rc(8)
>
> - you will not necessarily signal processes in the right order. This may
> be acceptable for keepalive, but for other applications (think: postfix,
> apache/httpd, pgsql, ...), this is potentially a bad move.
>
> --
> Jean-Yves Migeon
> jeanyves.migeon%free.fr@localhost
>
Yes! I find it ugly too!

kind regards
Hans


Home | Main Index | Thread Index | Old Index