Date: Fri, 17 Dec 2010 22:44:48 -0500 From: Greg Larkin <glarkin@FreeBSD.org> To: "Philip M. Gollucci" <pgollucci@p6m7g8.com> Cc: Doug Barton <dougb@FreeBSD.org>, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, "Philip M. Gollucci" <pgollucci@FreeBSD.org>, janos.mohacsi@bsd.hu, Craig Leres <leres@ee.lbl.gov> Subject: Re: cvs commit: ports/net/beacon Makefile ports/net/beacon/files beacon.in patch-Makefile.in patch-common-beacon.patch patch-libbeacon-Makefile.in Message-ID: <4D0C2E30.8090406@FreeBSD.org> In-Reply-To: <4D0C292C.5060008@p6m7g8.com> References: <201012152244.oBFMigGD066775@repoman.freebsd.org> <4D0BCEFA.1030305@FreeBSD.org> <4D0BD3C5.6010809@p6m7g8.com> <4D0C292C.5060008@p6m7g8.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Philip M. Gollucci wrote: > On 12/17/10 21:19, Philip M. Gollucci wrote: >> On 12/17/10 20:58, Doug Barton wrote: >>> Couple of problems with this script. First, since by default it is now >>> running as a non-root user it should REQUIRE: LOGIN. We prefer not to >>> run code unconditionally, so the if [ -f ${config} ] block should >>> probably be in a prestart method. Finally the traditional way of >>> daemoninzing is to make command /usr/sbin/daemon, and command_args >>> include the thing to start. There are numerous examples of this, it >>> should not be too hard to find one. >> I will fixes; hopefully today or this weekend. > >> Thanks. Learn something new every day about daemon > > > > Janos, > > Can you please test this change paying special attention to dougb's > additional comment below. > > http://people.freebsd.org/~pgollucci/beacon.in.txt > > 03:21 <@dougb> you'll have to test stop and restart with the daemon as > command, since I don't think I've done one with both daemon and > command_interpreter > > Thanks. > > > FYI, if that doesn't work for some reason, this is how we achieved it in the rc.d script for devel/viewvc: http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/viewvc/files/viewvc.in?rev=1.5 Hope it helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFNDC4w0sRouByUApARAmbJAKDHCpIoC80LAoBSwMNIWuCihh+3IgCgqJ/2 /Nx7xdjhWtsoDXStyDIDayI= =a8FW -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D0C2E30.8090406>