From owner-freebsd-questions@FreeBSD.ORG Fri Oct 15 09:46:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E2AA16A4CE for ; Fri, 15 Oct 2004 09:46:03 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2721343D45 for ; Fri, 15 Oct 2004 09:46:02 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i9F9jvQt094879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Oct 2004 10:45:57 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i9F9jvvF094878; Fri, 15 Oct 2004 10:45:57 +0100 (BST) (envelope-from matthew) Date: Fri, 15 Oct 2004 10:45:57 +0100 From: Matthew Seaman To: Henri Prudhomme Message-ID: <20041015094557.GC93093@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Henri Prudhomme , freebsd-questions@freebsd.org References: <20041015044703.29956.qmail@web53006.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eRtJSFbw+EEWtPj3" Content-Disposition: inline In-Reply-To: <20041015044703.29956.qmail@web53006.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 15 Oct 2004 10:45:58 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Problem with Swatch script in /usr/local/etc/rc.d X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2004 09:46:03 -0000 --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--