ipmon revision 1.8
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 12name="ipmon" 13rcvar=$name 14 15load_rc_config $name 16 17command="/usr/sbin/${name}" 18 19if [ "${IPMON_DAEMON}" = "Y" ] ; then 20 IPMON_ARGS="-D ${IPMON_ARGS}" 21fi 22if [ "${IPMON_PIDFILE}" != "" ] ; then 23 IPMON_ARGS="-p ${IPMON_PIDFILE} ${IPMON_ARGS}" 24fi 25if [ "${IPMON_LOG_ALL}" = "Y" ] ; then 26 IPMON_ARGS="-a ${IPMON_ARGS}" 27fi 28if [ "${IPMON_LOG_BODY}" = "Y" ] ; then 29 IPMON_ARGS="-b ${IPMON_ARGS}" 30fi 31if [ "${IPMON_RESOLVE_NAMES}" = "Y" ] ; then 32 IPMON_ARGS="-n ${IPMON_ARGS}" 33fi 34 35command_args="${IPMON_ARGS} ${IPMON_LOG_OUTPUT}" 36 37run_rc_command "$1" 38