Subject: Re: parameters via /etc/rc.d/
To: Anthony Lieuallen <arantius@yahoo.com>
From: Luke Mewburn <lukem@netbsd.org>
List: netbsd-help
Date: 09/19/2001 13:29:20
On Tue, Sep 18, 2001 at 07:53:58PM -0700, Anthony Lieuallen wrote:
> Hello,
> I have ipmon run as per default via the script in /etc/rc.d which
> is:#!/bin/sh
> #
> # $NetBSD: ipmon,v 1.2.4.1 2000/10/02 01:07:17 lukem Exp $
> #
> 
> # PROVIDE: ipmon
> # REQUIRE: syslogd
> 
> . /etc/rc.subr
> 
> name="ipmon"
> rcvar=$name
> command="/usr/sbin/${name}"
> command_args="&"
> 
> load_rc_config $name
> run_rc_command "$1"
> 
> 
> But this program starts w/ parameters -sn.  I do not want the -n but
> how do I turn it off?  I expected "command args" to contain -sn but it
> doesn't for me to take it out.

It is getting the -sn parameters from ipmon_flags in /etc/defaults/rc.conf. 
add the following line to /etc/rc.conf (don't edit /etc/defaults/rc.conf):
	ipmon_flags="-s"

Luke.

-- 
Luke Mewburn  <lukem@wasabisystems.com>  http://www.wasabisystems.com
Luke Mewburn     <lukem@netbsd.org>      http://www.netbsd.org
Wasabi Systems - NetBSD hackers for hire
NetBSD - the world's most portable UNIX-like operating system