From owner-freebsd-ports@FreeBSD.ORG Wed Sep 6 14:18:13 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15D9816A4DF for ; Wed, 6 Sep 2006 14:18:13 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9288E43D46 for ; Wed, 6 Sep 2006 14:18:10 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20060906141804m92000v2ige>; Wed, 6 Sep 2006 14:18:09 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.6/8.13.6) with ESMTP id k86EI2b5085891; Wed, 6 Sep 2006 09:18:02 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.6/8.13.6/Submit) id k86EHvZ8085890; Wed, 6 Sep 2006 09:17:57 -0500 (CDT) (envelope-from brooks) Date: Wed, 6 Sep 2006 09:17:57 -0500 From: Brooks Davis To: Albert Poon Message-ID: <20060906141756.GA85679@lor.one-eyed-alien.net> References: <20060905064216.M3061@bigtearice.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <20060905064216.M3061@bigtearice.net> User-Agent: Mutt/1.5.11 Cc: ports@freebsd.org, tremere@cainites.net Subject: Re: FreeBSD Port: teamspeak_server-2.0.20.1_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2006 14:18:13 -0000 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 05, 2006 at 03:00:46PM +0800, Albert Poon wrote: > Hi, >=20 > A bug in start-up script /usr/local/etc/rc.d/teamspeak-server is discover= ed,=20 > causing teamspeak-server to load earlier than linux support. It happens o= n my=20 > FreeBSD 6.1 box but not in my FreeBSD 5.5 box. >=20 > Problem code: >=20 > (line 6) > # REQUIRE: NETWORKING >=20 > I think since FreeBSD 6 it will inpsect the start-up scripts and arrange = them=20 > to be loaded accordingly. Since NETWORKING is loaded earlier than linux= =20 > support, teamspeak-server will fail to start. >=20 > Workaround: >=20 > Either change the problem code to >=20 > # REQUIRE: DAEMON This is correct. There's almost never any point in starting a daemon before this. Even if it was, SERVERS would almost certainly be more correct than NETWORKING. > Or any other daemon's name that load after linux support, e.g. >=20 > # REQUIRE: ntpd This would be 100% wrong. > Or remove the line completely. >=20 > I wonder if there is something like # REQUIRE: LINUX (obviously it doesn'= t=20 > work), but I too lazy to spend more time in digging the code. That would be abi, but it's part of the environment that's expected to be up before any servers run so DAEMON is appropriate. -- Brooks --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE/tiUXY6L6fI4GtQRAgG3AJ4r9LsEPS9/SvQ7G4Jj4irfWS+BCACggo/e iNuiZP97MHVSH4tAdycz/iE= =OdNq -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1--