Re: Combining pgrep with kill -HUP
From: Chris Thompson (cet1_at_cus.cam.ac.uk)
Date: 05/07/03
- Next message: «ÕÆF: "Re: grep command."
- Previous message: Richard L. Hamilton: "Re: Best way to clear wtmpx with running system"
- In reply to: Casper H.S. ***: "Re: Combining pgrep with kill -HUP"
- Next in thread: Richard L. Hamilton: "Re: Combining pgrep with kill -HUP"
- Reply: Richard L. Hamilton: "Re: Combining pgrep with kill -HUP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 7 May 2003 20:37:40 GMT
In article <3eb8ceb3$0$49108$e4fe514c@news.xs4all.nl>,
Casper H.S. *** <Casper.***@Sun.COM> wrote:
>"Al" <ajeng.nospam@nospam.com> writes:
>
>>Hi all
>
>>How can I restart inetd with one line command? I though kill -HUP 'pgrep
>>inetd' should work, but it does not.
>
>Did you use single quotes rather than backquotes?
>
> kill -HUP `pgrep inetd`
>
>but I think you really want:
>
> pkill -HUP inetd
For the properly paranoid,
pkill -HUP -x -u 0 -P 1 inetd
At any rate that's what I use as an rdist "special" when we update
/etc/inetd.conf ...
Chris Thompson
Email: cet1 [at] cam.ac.uk
- Next message: «ÕÆF: "Re: grep command."
- Previous message: Richard L. Hamilton: "Re: Best way to clear wtmpx with running system"
- In reply to: Casper H.S. ***: "Re: Combining pgrep with kill -HUP"
- Next in thread: Richard L. Hamilton: "Re: Combining pgrep with kill -HUP"
- Reply: Richard L. Hamilton: "Re: Combining pgrep with kill -HUP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]