Date: Fri, 15 Oct 2004 10:45:57 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Henri Prudhomme <ntwrk_engr@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Problem with Swatch script in /usr/local/etc/rc.d Message-ID: <20041015094557.GC93093@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20041015044703.29956.qmail@web53006.mail.yahoo.com> References: <20041015044703.29956.qmail@web53006.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--eRtJSFbw+EEWtPj3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 14, 2004 at 09:47:03PM -0700, Henri Prudhomme wrote: > By RTFM my understanding is that for 4.10 nothing > special is needed. Just make sure the script is in the > rc.d directory, is executable (755) and ends with .sh. > The script is owned by root and wheel. It depends. More and more ports are switching over to the rc.subr style of startup script. In those cases you also need to edit /etc/rc.conf and put in a line 'foo_enable=3D"YES"' to enable starting the foo service at boot time. Or indeed at any time by manually running the rc.d script. Since your script can start up Swatch when run by hand, but not during system boot, I suspect the problem is either to do with having or not having a tty at startup time, or else to do with boot order -- maybe if you try changing the script name to 'zzzswatch.sh' to force it to be started up last it will work better. Hmmm... I see that the security/swatch port does not come with a standard startup script. Perhaps your best bet would be to post the script here and see if we can spot the bugs. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --eRtJSFbw+EEWtPj3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBb5xViD657aJF7eIRAoW4AJ9um9CUTPr9rJfmRclR/HZ3Le5caQCcCPOz xdkhBOKExY3wDEUXGp4QFKA= =Azq0 -----END PGP SIGNATURE----- --eRtJSFbw+EEWtPj3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041015094557.GC93093>