From owner-cvs-all Wed Jul 5 21:36:28 2000 Delivered-To: cvs-all@freebsd.org Received: from guru.mired.org (zoom0-241.telepath.com [216.14.0.241]) by hub.freebsd.org (Postfix) with SMTP id B83EA37C0DA for ; Wed, 5 Jul 2000 21:36:23 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 12891 invoked by uid 100); 6 Jul 2000 02:49:39 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14691.62403.305892.897705@guru.mired.org> Date: Wed, 5 Jul 2000 21:49:39 -0500 (CDT) 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 ... In-Reply-To: References: X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: Sheldon Hearn > 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.