From owner-freebsd-questions Tue Sep 24 3:48:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03A9237B401 for ; Tue, 24 Sep 2002 03:48:32 -0700 (PDT) Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by mx1.FreeBSD.org (Postfix) with SMTP id E6A5643E6E for ; Tue, 24 Sep 2002 03:48:30 -0700 (PDT) (envelope-from CapM@gmx.net) Received: (qmail 11770 invoked by uid 0); 24 Sep 2002 10:48:29 -0000 Date: Tue, 24 Sep 2002 12:48:29 +0200 (MEST) From: Pascal Giannakakis To: "Barry Byrne" Cc: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 References: Subject: RE: Writing a start / stop script (getting pid) X-Priority: 3 (Normal) X-Authenticated-Sender: #0000945514@gmx.net X-Authenticated-IP: [195.82.64.130] Message-ID: <21660.1032864509@www23.gmx.net> X-Mailer: WWW-Mail 1.5 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm sorry, i searched for "PID" in the manpage... Thanks! > Pascal: > > You can use the -p option of ftpd to write it's PID to a file. > > Something like > > ftpd -D -p /var/run/fptd.pid > > should probably work. > > - Barry > > -- > Barry Byrne, IT Manager, > WBT Systems, Block 2, Harcourt Centre > Harcourt Street, Dublin 2, Ireland > > > -----Original Message----- > > From: owner-freebsd-questions@FreeBSD.ORG > > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Pascal > > Giannakakis > > Sent: 24 September 2002 10:41 > > To: freebsd-questions@FreeBSD.ORG > > Subject: Writing a start / stop script (getting pid) > > > > > > Lo ppl, > > > > how to i get the pid of a process i start in a shellscript? > > > > The Variables $$ / $PID are not really of use. What i would like > > to have, is > > some sort > > of command with has the return value of another startet script. > > > > The background: i try to write a rc.d script for ftpd, and i need > > the PID to > > stop it > > again. > > > > Thx! > > > > -- > > Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen - > > und tolle Preise absahnen! http://www.onlinestar.de > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > -- Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen - und tolle Preise absahnen! http://www.onlinestar.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message