From owner-freebsd-questions@FreeBSD.ORG Thu Feb 7 10:17:06 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 A4FD816A417 for ; Thu, 7 Feb 2008 10:17:06 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1DACF13C519 for ; Thu, 7 Feb 2008 10:17:05 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JN3oR-0001hi-CO for freebsd-questions@freebsd.org; Thu, 07 Feb 2008 10:16:59 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 10:16:59 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 10:16:59 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Thu, 07 Feb 2008 11:18:09 +0100 Lines: 53 Message-ID: References: <1563a4fd0802060609j59451879h3920be790d7667c0@mail.gmail.com> <47616.9193782427$1202324783@news.gmane.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB6C1C4142A3DACC5BD761E98" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.6 (X11/20071022) In-Reply-To: <47616.9193782427$1202324783@news.gmane.org> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: script to be executed on system startup. 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: Thu, 07 Feb 2008 10:17:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB6C1C4142A3DACC5BD761E98 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable RW wrote: > On Wed, 06 Feb 2008 15:55:12 +0100 > Ivan Voras wrote: >=20 >=20 >> I've seen some complicated examples on this thread, and want to >> suggest a simple one: >> >> 1. create a regular shell script in /etc/rc.d, n >> .. >> A more semantically pure example (and the one that's preferred if your= >> script starts an external application - a web server or something like= >> that) is to put the script in /usr/local/etc/rc.d. In any case, the >> syntax and everything else is the same. >=20 > This is a bit muddled. >=20 > /etc/rc.d is for system RCNG scripts. >=20 > /usr/local/etc/rc.d is for local RCNG scripts and legacy scripts You are right - I was trying to simplify it too much. > that simply respond to stop/start in $1. Legacy scripts end in .sh and > are called from /etc/rc.d/localpkg in dictionary order. >=20 > Since the OP appears to have such a script it should be given a ".sh" > extension and placed in /usr/local/etc/rc.d, not in /etc/rc.d.=20 Thanks for the clarification! --------------enigB6C1C4142A3DACC5BD761E98 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHqtrhldnAQVacBcgRAo0aAJ4p6lLu1s0SKlFOfU96ktE+5TZdgwCeOjVw 6OPlP7Iv/FXP95g/K7S1uTI= =XhE/ -----END PGP SIGNATURE----- --------------enigB6C1C4142A3DACC5BD761E98--