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

2009-09-17 Thread Matthew Seaman
Tom Worster wrote: On 9/16/09 3:19 PM, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: 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

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

2009-09-17 Thread Mel Flynn
On Wednesday 16 September 2009 21:18:03 Tom Worster wrote: On 9/16/09 2:37 PM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Wednesday 16 September 2009 20:21:40 Chris Cowart wrote: Tom Worster wrote: thanks, Mel, that's good to know. i think your suggestion of

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

2009-09-17 Thread Ruben de Groot
On Thu, Sep 17, 2009 at 07:14:29PM +0200, Mel Flynn typed: On Wednesday 16 September 2009 21:18:03 Tom Worster wrote: On 9/16/09 2:37 PM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Wednesday 16 September 2009 20:21:40 Chris Cowart wrote: Tom Worster wrote:

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

2009-09-17 Thread Mel Flynn
On Thursday 17 September 2009 19:55:33 Ruben de Groot wrote: On Thu, Sep 17, 2009 at 07:14:29PM +0200, Mel Flynn typed: On Wednesday 16 September 2009 21:18:03 Tom Worster wrote: On 9/16/09 2:37 PM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Wednesday 16

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

2009-09-16 Thread Tom Worster
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? for example, how does one start sshd using /etc/rc.d/sshd and pass it '-o X11Forwarding=no' without touching a config file? tom

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

2009-09-16 Thread Mel Flynn
On Wednesday 16 September 2009 18:45:29 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? for example, how does one start sshd using /etc/rc.d/sshd and pass it '-o X11Forwarding=no'

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

2009-09-16 Thread Tom Worster
On 9/16/09 1:35 PM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Wednesday 16 September 2009 18:45:29 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? for

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

2009-09-16 Thread Chris Cowart
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

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

2009-09-16 Thread Mel Flynn
On Wednesday 16 September 2009 20:21:40 Chris Cowart wrote: 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

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

2009-09-16 Thread Tom Worster
On 9/16/09 2:37 PM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Wednesday 16 September 2009 20:21:40 Chris Cowart wrote: 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.

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

2009-09-16 Thread Matthew Seaman
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,

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

2009-09-16 Thread Tom Worster
On 9/16/09 3:19 PM, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: 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