Date: Wed, 16 Sep 2009 20:19:46 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Tom Worster <fsb@thefsb.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: passing options thru '/etc/rc.d/foo start' Message-ID: <4AB13A52.1010006@infracaninophile.co.uk> In-Reply-To: <C6D68E69.127BA%fsb@thefsb.org> References: <C6D68E69.127BA%fsb@thefsb.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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="-a -b -c". This is a convention, and particular
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 check
each case individually.
> for example, how does one start sshd using /etc/rc.d/sshd and pass it
> '-o X11Forwarding=no' without touching a config file?
In this case, setting sshd_flags will work as sshd uses the default rc
start function.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AB13A52.1010006>
