Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 1999 10:58:18 -0400 (EDT)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Mark Murray <mark@grondar.za>
Cc:        Chris Piazza <cpiazza@home.net>, "Vanilla I. Shu" <vanilla@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/security/xinetd Makefile ports/security/xinetd/files md5 
Message-ID:  <Pine.BSF.4.10.9908141057170.55593-100000@janus.syracuse.net>
In-Reply-To: <199908141452.QAA23532@gratis.grondar.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 14 Aug 1999, Mark Murray wrote:

> > I'd like to take this opportunity to note that anything that creates
> > a /var/run/%s.pid should unlink it when it goes away. How could you
> > do that from a startup script?
> 
> You are incorrect.
> 
> Programs that care should look for the process with the PID in that file,
> and if it is not found, should do something sane (like restart the errant
> process or rm the file).

So we're expected to do something like this?
p=$(</var/run/foo.pid); kill $p; rm -f $p

> 
> M
> --
> Mark Murray
> Join the anti-SPAM movement: http://www.cauce.org
> 
> 

 Brian Fundakowski Feldman      _ __ ___ ____  ___ ___ ___  
 green@FreeBSD.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908141057170.55593-100000>