Re: Recording OpenNTPd PID at daemon startup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Tuesday, January 29, 2008 - 9:54 am

pierre wrote:

Not at all. I might find a child but I will never find the parent.

[root@BSDHelmut ~]# pgrep -fl httpd
81972 /usr/local/sbin/httpd
81960 /usr/local/sbin/httpd
1115 /usr/local/sbin/httpd
1114 /usr/local/sbin/httpd
1111 /usr/local/sbin/httpd
1109 /usr/local/sbin/httpd
1108 /usr/local/sbin/httpd
979 /usr/local/sbin/httpd
[root@BSDHelmut ~]#

To stop httpd, which pid should I kill, the oldest, or the most recent?

OK, 'pgrep -fl httpd | tail -1' does the trick, and pgrep is not safe enough
for finding parents, but...

--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Recording OpenNTPd PID at daemon startup, Helmut Schneider, (Tue Jan 29, 9:54 am)
Re: Recording OpenNTPd PID at daemon startup, Henning Brauer, (Tue Jan 29, 11:30 am)
Re: Recording OpenNTPd PID at daemon startup, Darrin Chandler, (Tue Jan 29, 10:31 am)