[Thread Prev][Thread Next][Thread Index]
Re: CAUTION!!!! Re: SOLARIS 7 start/stop script for PilotManager v1.107
- To: Alan Harder <Alan.Harder@Ebay>
- Subject: Re: CAUTION!!!! Re: SOLARIS 7 start/stop script for PilotManager v1.107
- From: Jim Koelkebeck <Jim.Koelkebeck@East>
- Date: Fri, 12 Mar 1999 14:18:11 -0500
- Cc: pilotmgr@xxxxxxxxxxxxxxxxxxxx
- Organization: Sun Microsystems, Inc., http://www.sun.com
- References: <199903121821.KAA08739@moshpit.EBay.Sun.COM>
- Reply-to: Jim.Koelkebeck@East
- Sender: koke@xxxxxxxxxxxxxxxxxxxxx
Alan Harder wrote:
>
> > Is there some technical reason why the daemon cannot check for itself (lock
> > file) when running and avoid such a (forgive me) kludge?
>
> I made a minimal effort at trying to detect if the serial port already had
> a daemon listening on it, but pilot-link didn't provide any useful error
> messages..
> A lock file could work, but then of course you have stale lock problems......
If you mean that the process that wrote the lock file died, put the PID of the
owner of the lock file in the file. Check for the existence of the lock file
and
the existence of the process with the PID found in the lock file. It just seems
brutal to zap a perfectly good daemon...
Jim
begin:vcard
n:Koelkebeck;Jim
tel;pager:800-759-8888 pin 418-0234
tel;fax:703-208-5829
tel;work:703-208-5749
x-mozilla-html:TRUE
url:http://www.sun.com
org:<A Href="http://www.sun.com"><Img Border=0 Src="http://www.sun.com/logos/SunURL.gif"></A>;Computer Systems Division
version:2.1
email;internet:Jim.Koelkebeck@xxxxxxxxxxxx
title:Systems Engineer
adr;quoted-printable:;;7900 Westpark Drive=0D=0ASuite A110;McLean;VA;22102;USA
x-mozilla-cpt:;-20832
fn:Jim Koelkebeck
end:vcard