From owner-freebsd-questions@FreeBSD.ORG Thu Aug 31 12:43:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B8A3B16A4DE for ; Thu, 31 Aug 2006 12:43:41 +0000 (UTC) (envelope-from freebsd@orchid.homeunix.org) Received: from orchid.homeunix.org (aud102.neoplus.adsl.tpnet.pl [83.27.11.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3D5E43D5E for ; Thu, 31 Aug 2006 12:43:37 +0000 (GMT) (envelope-from freebsd@orchid.homeunix.org) Received: from [192.168.1.66] (blackacidevil.orchid.homeunix.org [192.168.1.66]) (authenticated bits=0) by orchid.homeunix.org (8.13.6/8.13.6) with ESMTP id k7VChSrK057712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 31 Aug 2006 14:43:35 +0200 (CEST) (envelope-from freebsd@orchid.homeunix.org) Message-ID: <44F6D968.6020708@orchid.homeunix.org> Date: Thu, 31 Aug 2006 14:43:20 +0200 From: Karol Kwiatkowski User-Agent: Thunderbird 1.5.0.5 (X11/20060731) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200608302047.06425.freebsd@dfwlp.com> <20060831032554.GA84168@catflap.slightlystrange.org> In-Reply-To: <20060831032554.GA84168@catflap.slightlystrange.org> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig6CDC1583E44FB6A89F6E5171" X-Virus-Scanned: ClamAV 0.88.4/1779/Thu Aug 31 09:56:15 2006 on orchid.homeunix.org X-Virus-Status: Clean Subject: Re: not adding daemons to rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@orchid.homeunix.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 12:43:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6CDC1583E44FB6A89F6E5171 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable On 31/08/2006 05:25, Daniel Bye wrote: > On Wed, Aug 30, 2006 at 08:47:06PM -0500, Jonathan Horne wrote: >> ive noticed that apache can be started manually using the apachectl to= ol, even> if it is not enabled in /etc/rc.conf. do many other daemons ha= ve this=20 >> ability? i have a dev server that i would like to not have many thing= s=20 >> enabled in the rc.conf, but i would like an easy way to just start spe= cific=20 >> daemons when i need. >=20 > There is the "force" modifier which may be of help/interest. It works > like this: >=20 > # /usr/local/etc/rc.d/script forcestart >=20 > This will, well, force the script to run, even if it's not explicitly > enabled in /etc/rc.conf. It does more, it will force the script to run even if a daemon is running. What OP is looking for is 'one' prefix: # /usr/local/etc/rc.d/script onestart # /usr/local/etc/rc.d/script onestop After rc.subr(8) manpage: ------ run_rc_command argument [...] force Skip the checks for rcvar being set to ``YES'', and sets rc_force=3DYES. This ignores argument_precmd returning non-zero, and ignores any of the required_* tests failing, and always returns a zero exit status. one Skip the checks for rcvar being set to ``YES'', but performs all the other prerequisite tests. ------ HTH, Karol --=20 Karol Kwiatkowski OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc --------------enig6CDC1583E44FB6A89F6E5171 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.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE9tlwezeoPAwGIYsRCNanAJ4kpdkT3J/Orf0OhoOJ4CWcUIndGgCfaRbY sogq+d1FWNuRkBRCnC6Z3Lk= =tqqd -----END PGP SIGNATURE----- --------------enig6CDC1583E44FB6A89F6E5171--