Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Helmut Schneider
Henning Brauer <[EMAIL PROTECTED]> wrote: * Helmut Schneider <[EMAIL PROTECTED]> [2008-01-29 15:02]: To stop httpd, which pid should I kill, the oldest, or the most recent? kill 'em all! [EMAIL PROTECTED] ~]# kill 1%'&$carrier lost -- No Swen today, my love has gone away My mailbox stands f

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Helmut Schneider
Darrin Chandler <[EMAIL PROTECTED]> wrote: If you really want to find the parent you can... $ ps ax -O pgid | grep ntpd 4887 4887 ?? Is 0:00.01 ntpd: [priv] (ntpd) 7164 4887 ?? I 0:00.06 ntpd: ntp engine (ntpd) The header that gets stripped by grep: PID PGID TT STAT TIME

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Henning Brauer
* Helmut Schneider <[EMAIL PROTECTED]> [2008-01-29 15:02]: > To stop httpd, which pid should I kill, the oldest, or the most recent? kill 'em all! -- Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED] BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedi

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Darrin Chandler
On Tue, Jan 29, 2008 at 02:54:14PM +0100, Helmut Schneider wrote: > pierre <[EMAIL PROTECTED]> wrote: >> On Tue, 29 Jan 2008 11:37:41 +0100 >> "Helmut Schneider" <[EMAIL PROTECTED]> wrote: >> >>> Claudio Jeker <[EMAIL PROTECTED]> wrote: We don't believe in pid files. Use pgrep(1) and pkill(1)

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Helmut Schneider
pierre <[EMAIL PROTECTED]> wrote: On Tue, 29 Jan 2008 11:37:41 +0100 "Helmut Schneider" <[EMAIL PROTECTED]> wrote: Claudio Jeker <[EMAIL PROTECTED]> wrote: We don't believe in pid files. Use pgrep(1) and pkill(1) instead, you will never have stale info that way. pgrep on OpenBSD does not sup

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Helmut Schneider
pierre <[EMAIL PROTECTED]> wrote: On Tue, 29 Jan 2008 11:37:41 +0100 "Helmut Schneider" <[EMAIL PROTECTED]> wrote: Claudio Jeker <[EMAIL PROTECTED]> wrote: We don't believe in pid files. Use pgrep(1) and pkill(1) instead, you will never have stale info that way. pgrep on OpenBSD does not sup

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Hannah Schroeter
Hi! On Tue, Jan 29, 2008 at 09:18:31AM -0200, pierre wrote: >On Tue, 29 Jan 2008 11:37:41 +0100 >"Helmut Schneider" <[EMAIL PROTECTED]> wrote: >> Claudio Jeker <[EMAIL PROTECTED]> wrote: >> > We don't believe in pid files. Use pgrep(1) and pkill(1) instead, >> > you will never have stale info tha

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread pierre
On Tue, 29 Jan 2008 11:37:41 +0100 "Helmut Schneider" <[EMAIL PROTECTED]> wrote: > Claudio Jeker <[EMAIL PROTECTED]> wrote: > > We don't believe in pid files. Use pgrep(1) and pkill(1) instead, > > you will never have stale info that way. > > pgrep on OpenBSD does not support '-o' (Select only th

Re: Recording OpenNTPd PID at daemon startup

2008-01-29 Thread Helmut Schneider
Claudio Jeker <[EMAIL PROTECTED]> wrote: We don't believe in pid files. Use pgrep(1) and pkill(1) instead, you will never have stale info that way. pgrep on OpenBSD does not support '-o' (Select only the oldest). It is - well - it could be more useful. -- No Swen today, my love has gone away

Re: Recording OpenNTPd PID at daemon startup

2008-01-25 Thread Lars Noodén
Claudio Jeker wrote: > We don't believe in pid files. Use pgrep(1) and pkill(1) instead, you will > never have stale info that way. Sweet! Use of pid files seemed like an anachronism anyway. pkill does what I wanted. Now I don't have to write an extra shell script. -Lars

Re: Recording OpenNTPd PID at daemon startup

2008-01-25 Thread Claudio Jeker
On Fri, Jan 25, 2008 at 03:17:55PM +0200, Lars Noodin wrote: > How should I go about recording the process id for the OpenNTP daemon? > Usually processes get written in /var/run/ > > Many daemons allow relocation via options or the config file e.g. > /usr/sbin/apt-cacher -d -p /var/run/apt-c

Re: Recording OpenNTPd PID at daemon startup

2008-01-25 Thread Henning Brauer
* Lars Noodin <[EMAIL PROTECTED]> [2008-01-25 14:20]: > How should I go about recording the process id for the OpenNTP daemon? > Usually processes get written in /var/run/ > > Many daemons allow relocation via options or the config file e.g. > /usr/sbin/apt-cacher -d -p /var/run/apt-cacher.p

Recording OpenNTPd PID at daemon startup

2008-01-25 Thread Lars Noodén
How should I go about recording the process id for the OpenNTP daemon? Usually processes get written in /var/run/ Many daemons allow relocation via options or the config file e.g. /usr/sbin/apt-cacher -d -p /var/run/apt-cacher.pid; /usr/local/sbin/dnsmasq --pid-file=/var/run/dnsmas