Date: Tue, 24 Sep 2002 10:54:55 +0100 From: "Barry Byrne" <barry.byrne@wbtsystems.com> To: "Pascal Giannakakis" <CapM@gmx.net>, <freebsd-questions@FreeBSD.ORG> Subject: RE: Writing a start / stop script (getting pid) Message-ID: <NCBBIAMNAKDKFJIIGNPKEEGJJKAA.barry.byrne@wbtsystems.com> In-Reply-To: <32468.1032860433@www23.gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKEEGJJKAA.barry.byrne>