Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d load_rc_config needs to be called earlier to pickup...



details:   https://anonhg.NetBSD.org/src/rev/39b08b47508e
branches:  trunk
changeset: 525779:39b08b47508e
user:      darrenr <darrenr%NetBSD.org@localhost>
date:      Wed Apr 17 11:42:54 2002 +0000

description:
load_rc_config needs to be called earlier to pickup the variables from the
config file so they can be used in the rc script itself.

diffstat:

 etc/rc.d/ipmon |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r ec6caa8a41a2 -r 39b08b47508e etc/rc.d/ipmon
--- a/etc/rc.d/ipmon    Wed Apr 17 11:14:28 2002 +0000
+++ b/etc/rc.d/ipmon    Wed Apr 17 11:42:54 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: ipmon,v 1.7 2002/04/17 11:05:12 darrenr Exp $
+# $NetBSD: ipmon,v 1.8 2002/04/17 11:42:54 darrenr Exp $
 #
 
 # PROVIDE: ipmon
@@ -11,7 +11,11 @@
 
 name="ipmon"
 rcvar=$name
+
+load_rc_config $name
+
 command="/usr/sbin/${name}"
+
 if [ "${IPMON_DAEMON}" = "Y" ] ; then
        IPMON_ARGS="-D ${IPMON_ARGS}"
 fi
@@ -30,5 +34,4 @@
 
 command_args="${IPMON_ARGS} ${IPMON_LOG_OUTPUT}"
 
-load_rc_config $name
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index