cvs commit: ports/net/beacon Makefile ports/net/beacon/files
beacon.in patch-Makefile.in patch-common-beacon.patch
patch-libbeacon-Makefile.in
Greg Larkin
glarkin at FreeBSD.org
Sat Dec 18 03:44:57 UTC 2010
-----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-----
More information about the cvs-ports
mailing list