Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Modify the script to use variable names provided by...
details: https://anonhg.NetBSD.org/src/rev/f6604a530fd2
branches: trunk
changeset: 525776:f6604a530fd2
user: darrenr <darrenr%NetBSD.org@localhost>
date: Wed Apr 17 11:05:12 2002 +0000
description:
Modify the script to use variable names provided by the ipmon conf file to
enable/disable "key" features.
diffstat:
etc/rc.d/ipmon | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r d2e415d34b20 -r f6604a530fd2 etc/rc.d/ipmon
--- a/etc/rc.d/ipmon Wed Apr 17 11:04:16 2002 +0000
+++ b/etc/rc.d/ipmon Wed Apr 17 11:05:12 2002 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index