Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2000 21:49:39 -0500 (CDT)
From:      Mike Meyer <mwm@mired.org>
To:        cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: ports/audio/rplay Makefile ports/audio/rplay/files rplayd.sh ports/chinese/xemacs/files xemacs20.sh ports/comms/conserver Makefile ports/comms/conserver/files conserver.sh ports/comms/hylafax/files hylafax.sh.sample ... 
Message-ID:  <14691.62403.305892.897705@guru.mired.org>
In-Reply-To: <bulk.9898.20000705063928@hub.freebsd.org>
References:  <bulk.9898.20000705063928@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Sheldon Hearn <sheldonh@uunet.co.za>
> Subject: 
> On Wed, 05 Jul 2000 05:37:07 MST, Thomas Gellekum wrote:
> >   As threatened on freebsd-ports: all startup scripts know about the two
> >   options `start' and `stop' now (unless I have forgotten any). This allows
> >   us to call the scripts from /etc/rc.shutdown with the correct option.

You apparently missed qmail port. However, it installs a symlink from
${LOCALBASE}/etc/rc.d (well, it will when the patch for the /usr/local
dependency gets committed) to /var/qmail/rc. The installer is expected
to copy the startup-script that is correct for their installation into
place.

I believe this is all being tweaked now. I'd expect the correct
solution is to create a new qmail.sh that uses start) to run
/var/qmail/rc, and stop to shut things down cleanly.

> Are you sure it's wise to use killall?  I presume you used it
> everywhere, although I only looked at my own port, exim.

If something runs as a single process (or can be halted by signalling
a single process), killall shouldn't be needed.

> It seems to me that it's better to look for a pidfile where one is
> specifically created for this purpose.

Creating one - even if the daemon doesn't - is pretty simple. Run the
command in the background, then use "echo $! > /var/run/NAME.pid".
Daemons that detach themselve may require more work.

If you really want, the stop section can use killall if the file
doesn't exist.



	<mike





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?14691.62403.305892.897705>