passing options thru '/etc/rc.d/foo start'

Chris Cowart ccowart at
Wed Sep 16 18:21:41 UTC 2009

Tom Worster wrote:
> thanks, Mel, that's good to know.
> 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="-o X11Forwarding=no"

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.

Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list