From owner-freebsd-hackers Thu Jun 12 02:25:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA18535 for hackers-outgoing; Thu, 12 Jun 1997 02:25:41 -0700 (PDT) Received: from lassie.eunet.fi (lassie.eunet.fi [192.26.119.7]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id CAA18516 for ; Thu, 12 Jun 1997 02:25:32 -0700 (PDT) Received: from tahko.lpr.carel.fi ([192.46.69.100]) by lassie.eunet.fi with SMTP id AA07926 (5.67a/IDA-1.5 for ); Thu, 12 Jun 1997 12:25:19 +0300 Received: from mercury.ps.carel.fi by tahko.lpr.carel.fi with ESMTP (8.7.5/1.1) id MAA06305; Thu, 12 Jun 1997 12:19:33 +0300 (EET DST) Received: from sodium (sodium.ps.carel.fi [194.137.216.111]) by mercury.ps.carel.fi (8.8.2/8.8.2) with SMTP id NAA29214; Thu, 12 Jun 1997 13:16:49 +0300 (EET DST) Received: by localhost with Microsoft MAPI; Thu, 12 Jun 1997 12:38:12 +0300 Message-Id: <01BC772D.7D5DBC60@ari.suutari@ps.carel.fi> From: Ari Suutari To: "'Wayne Baety'" Cc: "'Brian Somers'" , Mark Tinguely , "freebsd-hackers@FreeBSD.ORG" Subject: RE: /var/run/natd.pid request Date: Thu, 12 Jun 1997 12:38:10 +0300 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4025 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, On 12. kesakuuta 1997 11:41, Wayne Baety [SMTP:mrfoine@enteract.com] wrote: > > > Well this is what i did a while back and needed the PID of natd....I think > it requires procfs for the grepping of /proc thou.... I Just attached all > of my cfg files for pppd..etc. Not sure if this was the best > solution....but it worked for me. Also there is a script to return the > pidof of a process by name....for the first match it prints just the PID > but any other matches aren't parsed and status information is printed in > the whole.....was a nice little script to get the PID of a named process > quickly w/o using ps.....since at the time ps was crashing my -current. > > I browsed through your scripts: The reason why neither SIGHUP or -dynamic would work for you is that you use -alias_address option. Dynamic features work only if you give the name of interface (with -interface) option instead of using -alias_address. Ari S.