1 #!/bin/sh 2 # 3 # $NetBSD: ipmon,v 1.8 2002/04/17 11:42:54 darrenr Exp $ 4 # 5 6 # PROVIDE: ipmon 7 # REQUIRE: syslogd 8 # BEFORE: SERVERS 9 10 . /etc/rc.subr 11 12 name="ipmon" 13 rcvar=$name 14 15 load_rc_config $name 16 17 command="/usr/sbin/${name}" 18 19 if [ "${IPMON_DAEMON}" = "Y" ] ; then 20 IPMON_ARGS="-D ${IPMON_ARGS}" 21 fi 22 if [ "${IPMON_PIDFILE}" != "" ] ; then 23 IPMON_ARGS="-p ${IPMON_PIDFILE} ${IPMON_ARGS}" 24 fi 25 if [ "${IPMON_LOG_ALL}" = "Y" ] ; then 26 IPMON_ARGS="-a ${IPMON_ARGS}" 27 fi 28 if [ "${IPMON_LOG_BODY}" = "Y" ] ; then 29 IPMON_ARGS="-b ${IPMON_ARGS}" 30 fi 31 if [ "${IPMON_RESOLVE_NAMES}" = "Y" ] ; then 32 IPMON_ARGS="-n ${IPMON_ARGS}" 33 fi 34 35 command_args="${IPMON_ARGS} ${IPMON_LOG_OUTPUT}" 36 37 run_rc_command "$1" 38