Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2009 11:21:40 -0700
From:      Chris Cowart <ccowart@rescomp.berkeley.edu>
To:        Tom Worster <fsb@thefsb.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: passing options thru '/etc/rc.d/foo start'
Message-ID:  <20090916182139.GJ37291@hal.rescomp.berkeley.edu>
In-Reply-To: <C6D6A27D.127D0%fsb@thefsb.org>
References:  <200909161935.50758.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <C6D6A27D.127D0%fsb@thefsb.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--pP0ycGQONqsnqIMP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Tom Worster wrote:
> thanks, Mel, that's good to know.
>=20
> i think your suggestion of modifying rc.conf will turn out to be a tidy
> solution for me.

You could also just put:

sshd_flags=3D"-o X11Forwarding=3Dno"

into your /etc/rc.conf file.

Pretty much all of the rc.d scripts support the use of NAME_flags being
defined in /etc/rc.conf, which are passed as extra commandline arguments
to the daemon. You should generally check /etc/defaults/rc.conf to see
what you might be clobbering. A small number of scripts may override
this feature from the library, breaking this method, but it's pretty
widely supported.

--=20
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley

--pP0ycGQONqsnqIMP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iQIcBAEBAwAGBQJKsSyzAAoJEC8b9sM8ejXtAJ0P/2KY4mfn9X8nsBUkbMrb5MbL
JskIcsEtMmcUtVlV75w68PSwwfAMAVEhDoRgrI0TlKd58LOhuaMaYYTYNN3Dd6/Q
3JtxYzmNB5Dqbzv0aZuz6/jr8TkGnMeI74t6FqTeBqa+esQvztTBLLkVTgka+eGV
gvhqbFUWzgBTmHapb72rNEOCao1D2bUcrpSbhzqCgY2tE6EY7RTNNV4LOdFYrmDS
8JakGmSnmxZ8cQWGWOYFJXLZcPKTbgR3pULSFY1+H5gVwYPkCpyYFXvVaEPQDSJN
/L1hfgllG9f4lrRjqKD9OxCjLiwV+G2FFMOGGr1e5FUcWrVgsUvQ8uxA5hY7CmF4
iYQINQgets1titfi6s0P7DZFbEsJY8WFJfZgsgHyMATNy1r6pndQ6am9qzXzh8w1
QY5fFyNfgPPB8N6peNXxRX0eznzT7qgeTh9j60gLaqDpdyfmoUDmQlhk9hS7UGag
r9viNZibd+EKqdg2puhpjftkpIujxSc2Nwkn3QLyOX3DRjC7rJwZ/uUh0QzBrXGF
95a+8C6GOs9MxR7Thf2gFONh20Q7462LjQH+NzHwAY7N3roKyDEUlIIGPE4P+U4K
e4Wwd1VI57sP3htuDe8n/+0H/e175LEncPngJ0mzrO11Jx/jJs5f+NGMkpVO8lIU
ltTUcuk7BMo9/80cq//S
=qMlk
-----END PGP SIGNATURE-----

--pP0ycGQONqsnqIMP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090916182139.GJ37291>