From owner-freebsd-questions@FreeBSD.ORG Wed Sep 16 19:19:58 2009 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 8E7B51065670 for ; Wed, 16 Sep 2009 19:19:58 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1706F8FC15 for ; Wed, 16 Sep 2009 19:19:57 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n8GJJq2M091948; Wed, 16 Sep 2009 20:19:53 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n8GJJq2M091948 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1253128793; bh=rT5+lNCL7osDqTVqkhAtjNtUQR7xoyV3atuvse+nyaY=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4AB13A52.1010006@infracaninophile.co.uk>|Date:=20W ed,=2016=20Sep=202009=2020:19:46=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20090823)|MIME-Vers ion:=201.0|To:=20Tom=20Worster=20|CC:=20FreeBSD=20 Mailing=20List=20|Subject:=20Re:=20 passing=20options=20thru=20'/etc/rc.d/foo=20start'|References:=20< C6D68E69.127BA%fsb@thefsb.org>|In-Reply-To:=20|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart /signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"applicatio n/pgp-signature"=3B=0D=0A=20boundary=3D"------------enigF01D4822BC A9639B97F99FC6"; b=KZZr3Wu/AS7hsHdGKERLqzxjXFNK0/NGX1YDRnbvRgLsyYGoPRCGNU8dS/pxk7hzm XI+7yVqd3zmxUNqE/e1w29g68Z3bgIUhx/G0S/OxskG6xoNoMmovwWubOJuvajJiVD fmC4IFbegjN1py/C0Qn8BvrdEFXgS9xySj7tQIMk= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4AB13A52.1010006@infracaninophile.co.uk> Date: Wed, 16 Sep 2009 20:19:46 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20090823) MIME-Version: 1.0 To: Tom Worster References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF01D4822BCA9639B97F99FC6" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Mailing List Subject: Re: passing options thru '/etc/rc.d/foo start' 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: Wed, 16 Sep 2009 19:19:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF01D4822BCA9639B97F99FC6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Tom Worster wrote: > is there a general shell syntax that can be used to pass arguments to a= > daemon that you're starting with the /etc/rc.d/foo start command? If you're starting service foo, then you should be able to define command= arguments by setting foo_flags=3D"-a -b -c". This is a convention, and p= articular services may use several more specific variables to build a command line or may simply ignore any flags variable completely, so you'll have to che= ck=20 each case individually. > for example, how does one start sshd using /etc/rc.d/sshd and pass it > '-o X11Forwarding=3Dno' without touching a config file? In this case, setting sshd_flags will work as sshd uses the default rc start function. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigF01D4822BCA9639B97F99FC6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkqxOlgACgkQ8Mjk52CukIwwvwCeIkiIncP/KndGGWld6DgFb+e4 9Z0AmwZpbfz8H8fFSYsMajCP7EHb3EPa =hERx -----END PGP SIGNATURE----- --------------enigF01D4822BCA9639B97F99FC6--