Subject: misc/25006: ipmon | '-D' command argument in /etc/rc.d/ipmon
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Fabian.Duelli@compaq.home.ch>
List: netbsd-bugs
Date: 04/01/2004 11:03:20
>Number:         25006
>Category:       misc
>Synopsis:       ipmon | '-D' command argument in /etc/rc.d/ipmon
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 01 09:04:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Fabian Duelli
>Release:        NetBSD 1.6.2
>Organization:
-
>Environment:
System: NetBSD compaq.home.ch 1.6.2 NetBSD 1.6.2 (GENERIC) #0: Tue Feb 10 21:53:10 UTC 2004 autobuild@tgm.netbsd.org:/autobuild/netbsd-1-6-PATCH002/i386/OBJ/autobuild/netbsd-1-6-PATCH002/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
by default ipmon gets started with '-ns' plus '-D' due the
command_args in /etc/rc.conf/ipmon. that's ok until you change the ipmon_flags
to something like '-n /var/log/ipf.log', then the '-D' in /etc/rc.d/ipmon gets
overridden, because the filename must be the last argument, and ipmon doesnt start in daemon mode.

>How-To-Repeat:
set the ipmon_flags in /etc/rc.conf to '-n ipf.log' and enter
	/etc/rc.d/ipmon restart

>Fix:
/etc/rc.d/ipmon
- command_args="-D"

/etc/defaults/rc.conf
- ipmon=NO	ipmon_flags="-ns"
+ ipmon=NO	ipmon_flags="-Dns"
>Release-Note:
>Audit-Trail:
>Unformatted: