Modify the script to use variable names provided by the ipmon conf file to
enable/disable "key" features.
This commit is contained in:
parent
3ca92bc1fd
commit
eff84cd1e7
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: ipmon,v 1.6 2002/03/22 04:33:58 thorpej Exp $
|
||||
# $NetBSD: ipmon,v 1.7 2002/04/17 11:05:12 darrenr Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: ipmon
|
||||
@ -12,7 +12,23 @@
|
||||
name="ipmon"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
command_args="-D"
|
||||
if [ "${IPMON_DAEMON}" = "Y" ] ; then
|
||||
IPMON_ARGS="-D ${IPMON_ARGS}"
|
||||
fi
|
||||
if [ "${IPMON_PIDFILE}" != "" ] ; then
|
||||
IPMON_ARGS="-p ${IPMON_PIDFILE} ${IPMON_ARGS}"
|
||||
fi
|
||||
if [ "${IPMON_LOG_ALL}" = "Y" ] ; then
|
||||
IPMON_ARGS="-a ${IPMON_ARGS}"
|
||||
fi
|
||||
if [ "${IPMON_LOG_BODY}" = "Y" ] ; then
|
||||
IPMON_ARGS="-b ${IPMON_ARGS}"
|
||||
fi
|
||||
if [ "${IPMON_RESOLVE_NAMES}" = "Y" ] ; then
|
||||
IPMON_ARGS="-n ${IPMON_ARGS}"
|
||||
fi
|
||||
|
||||
command_args="${IPMON_ARGS} ${IPMON_LOG_OUTPUT}"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user