From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 21:34:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5E631065673 for ; Mon, 30 Jun 2008 21:34:14 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 7E8908FC19 for ; Mon, 30 Jun 2008 21:34:14 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id m5ULY86c054020; Mon, 30 Jun 2008 23:34:08 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 6D30EB847; Mon, 30 Jun 2008 23:34:04 +0200 (CEST) Date: Mon, 30 Jun 2008 23:34:04 +0200 From: Roland Smith To: fred Message-ID: <20080630213404.GA6514@slackbox.xs4all.nl> References: <011801c8daf1$281caac0$78560040$@com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <011801c8daf1$281caac0$78560040$@com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: priority or order for /usr/local/etc/rc.d scripts? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 21:34:15 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 30, 2008 at 04:37:47PM -0400, fred wrote: > Hi guys, >=20 > Basically, I have 2 scripts in the folder /usr/local/etc/rc.d/ >=20 > Resin.sh and apache.sh Are these the scripts provided by the ports? They should be installed without the '.sh' extension. See rc(8). > I need resin to be started when apache is starting, how can I do that? I > can't find any documentation on priority or order for startup scripts. See the manual pages for rc(8) and rcorder(8).=20 Basically, you need to put a number of special comments in the scripts for the rc system to work with them. For instance, the script for resin (made from /usr/ports/www/resin3/files/resin.sh.in) should be modified like: # REQUIRE: LOGIN apache22 The latter is provided by the startup script installed by apache. This is generated from /usr/ports/www/apache22/files/apache22.sh.in.=20 Both should of course be enabled in /etc/rc.conf: apache22_enable=3D"YES" resin_enable=3D"YES" Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhpUUwACgkQEnfvsMMhpyX3nACdGwL76g+NLJoPsPh6+De/JcHO B70AoJp0agWFkkgn3GQ+4MZtRLsFNi1F =+htI -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--