From owner-cvs-all@FreeBSD.ORG Sat Dec 18 03:44:57 2010 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F93D106564A; Sat, 18 Dec 2010 03:44:57 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 22A5A8FC12; Sat, 18 Dec 2010 03:44:56 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1PTniy-0003VL-0Y; Fri, 17 Dec 2010 22:44:54 -0500 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 6409C488C027; Fri, 17 Dec 2010 22:44:48 -0500 (EST) Message-ID: <4D0C2E30.8090406@FreeBSD.org> Date: Fri, 17 Dec 2010 22:44:48 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "Philip M. Gollucci" References: <201012152244.oBFMigGD066775@repoman.freebsd.org> <4D0BCEFA.1030305@FreeBSD.org> <4D0BD3C5.6010809@p6m7g8.com> <4D0C292C.5060008@p6m7g8.com> In-Reply-To: <4D0C292C.5060008@p6m7g8.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) Cc: Doug Barton , cvs-all@FreeBSD.org, ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, "Philip M. Gollucci" , janos.mohacsi@bsd.hu, Craig Leres 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 03:44:57 -0000 -----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-----