summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.d/amd2
-rwxr-xr-xetc/rc.d/cron2
-rwxr-xr-xetc/rc.d/dhclient2
-rwxr-xr-xetc/rc.d/dmesg2
-rwxr-xr-xetc/rc.d/inetd2
-rw-r--r--etc/rc.d/isdnd2
-rw-r--r--etc/rc.d/jail2
-rwxr-xr-xetc/rc.d/ldconfig4
-rwxr-xr-xetc/rc.d/mountcritremote2
-rw-r--r--etc/rc.d/moused2
-rwxr-xr-xetc/rc.d/mrouted2
-rwxr-xr-xetc/rc.d/named2
-rwxr-xr-xetc/rc.d/ntpd2
-rw-r--r--etc/rc.d/pflog2
-rwxr-xr-xetc/rc.d/rarpd2
-rwxr-xr-xetc/rc.d/sendmail2
-rwxr-xr-xetc/rc.d/sshd2
-rw-r--r--etc/rc.d/watchdogd2
18 files changed, 20 insertions, 18 deletions
diff --git a/etc/rc.d/amd b/etc/rc.d/amd
index e445cf35d3bb..57218d5e81cc 100755
--- a/etc/rc.d/amd
+++ b/etc/rc.d/amd
@@ -5,7 +5,7 @@
#
# PROVIDE: amd
-# REQUIRE: rpcbind ypbind nfsclient
+# REQUIRE: rpcbind ypbind nfsclient cleanvar
# BEFORE: DAEMON
# KEYWORD: nojail
diff --git a/etc/rc.d/cron b/etc/rc.d/cron
index f33264f44d08..d053f324ba05 100755
--- a/etc/rc.d/cron
+++ b/etc/rc.d/cron
@@ -5,7 +5,7 @@
#
# PROVIDE: cron
-# REQUIRE: LOGIN
+# REQUIRE: LOGIN cleanvar
# BEFORE: securelevel
# KEYWORD: shutdown
diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient
index a317f32aa99c..5d284277cdf1 100755
--- a/etc/rc.d/dhclient
+++ b/etc/rc.d/dhclient
@@ -5,7 +5,7 @@
#
# PROVIDE: dhclient
-# REQUIRE: netif ipfw ipfilter mountcritlocal
+# REQUIRE: netif ipfw ipfilter mountcritlocal cleanvar
# BEFORE: NETWORKING
# KEYWORD: nojail
#
diff --git a/etc/rc.d/dmesg b/etc/rc.d/dmesg
index 6e2d552c01d3..b6fb05a27ac2 100755
--- a/etc/rc.d/dmesg
+++ b/etc/rc.d/dmesg
@@ -5,7 +5,7 @@
#
# PROVIDE: dmesg
-# REQUIRE: mountcritremote
+# REQUIRE: mountcritremote cleanvar
# BEFORE: DAEMON
# KEYWORD: Daemon nojail
diff --git a/etc/rc.d/inetd b/etc/rc.d/inetd
index d5b3b4415e44..4944d6aa5789 100755
--- a/etc/rc.d/inetd
+++ b/etc/rc.d/inetd
@@ -5,7 +5,7 @@
#
# PROVIDE: inetd
-# REQUIRE: DAEMON LOGIN
+# REQUIRE: DAEMON LOGIN cleanvar
# KEYWORD: shutdown
. /etc/rc.subr
diff --git a/etc/rc.d/isdnd b/etc/rc.d/isdnd
index 94765057c258..7ed1628efe7a 100644
--- a/etc/rc.d/isdnd
+++ b/etc/rc.d/isdnd
@@ -7,7 +7,7 @@
#
# PROVIDE: isdnd
-# REQUIRE: netif mountcritlocal
+# REQUIRE: netif mountcritlocal cleanvar
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/jail b/etc/rc.d/jail
index 535a7196c528..9ad638f17df3 100644
--- a/etc/rc.d/jail
+++ b/etc/rc.d/jail
@@ -4,7 +4,7 @@
#
# PROVIDE: jail
-# REQUIRE: LOGIN
+# REQUIRE: LOGIN cleanvar
# BEFORE: securelevel
# KEYWORD: nojail shutdown
diff --git a/etc/rc.d/ldconfig b/etc/rc.d/ldconfig
index 507118c59dbf..4d7632ad9ff6 100755
--- a/etc/rc.d/ldconfig
+++ b/etc/rc.d/ldconfig
@@ -5,7 +5,7 @@
#
# PROVIDE: ldconfig
-# REQUIRE: mountcritremote
+# REQUIRE: mountcritremote cleanvar
# BEFORE: DAEMON
. /etc/rc.subr
@@ -28,7 +28,9 @@ ldconfig_start()
fi
done
echo 'ELF ldconfig path:' ${_LDC}
+ldconfig -r >/tmp/ldcon.`basename $0`.0before
${ldconfig} -elf ${_ins} ${_LDC}
+ldconfig -r >/tmp/ldcon.`basename $0`.1after
# Legacy aout support for i386 only
case `sysctl -n hw.machine_arch` in
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote
index 67e60f074941..4b3d2f9a36b6 100755
--- a/etc/rc.d/mountcritremote
+++ b/etc/rc.d/mountcritremote
@@ -5,7 +5,7 @@
#
# PROVIDE: mountcritremote
-# REQUIRE: NETWORKING root mountcritlocal
+# REQUIRE: NETWORKING root mountcritlocal cleanvar
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/moused b/etc/rc.d/moused
index 9d35a05a262a..ed9070391358 100644
--- a/etc/rc.d/moused
+++ b/etc/rc.d/moused
@@ -5,7 +5,7 @@
#
# PROVIDE: moused
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON cleanvar
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/mrouted b/etc/rc.d/mrouted
index c3772766bcfb..79e369373b61 100755
--- a/etc/rc.d/mrouted
+++ b/etc/rc.d/mrouted
@@ -5,7 +5,7 @@
#
# PROVIDE: mrouted
-# REQUIRE: netif routing
+# REQUIRE: netif routing cleanvar
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/named b/etc/rc.d/named
index e1bb0601407b..660caedf56da 100755
--- a/etc/rc.d/named
+++ b/etc/rc.d/named
@@ -5,7 +5,7 @@
#
# PROVIDE: named
-# REQUIRE: SERVERS
+# REQUIRE: SERVERS cleanvar
# BEFORE: DAEMON
# KEYWORD: shutdown
diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd
index 248151773bee..407b307d7a1d 100755
--- a/etc/rc.d/ntpd
+++ b/etc/rc.d/ntpd
@@ -5,7 +5,7 @@
#
# PROVIDE: ntpd
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON cleanvar
# BEFORE: LOGIN
# KEYWORD: nojail
diff --git a/etc/rc.d/pflog b/etc/rc.d/pflog
index 86995e9c9ef5..4adbdfc818c4 100644
--- a/etc/rc.d/pflog
+++ b/etc/rc.d/pflog
@@ -4,7 +4,7 @@
#
# PROVIDE: pflog
-# REQUIRE: root mountcritlocal netif
+# REQUIRE: root mountcritlocal netif cleanvar
# BEFORE: DAEMON LOGIN
# KEYWORD: nojail
diff --git a/etc/rc.d/rarpd b/etc/rc.d/rarpd
index ea518508f25c..a79da9dce65f 100755
--- a/etc/rc.d/rarpd
+++ b/etc/rc.d/rarpd
@@ -5,7 +5,7 @@
#
# PROVIDE: rarpd
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON cleanvar
# BEFORE: LOGIN
# KEYWORD: nojail
diff --git a/etc/rc.d/sendmail b/etc/rc.d/sendmail
index b7ac600c58be..3164857c9f08 100755
--- a/etc/rc.d/sendmail
+++ b/etc/rc.d/sendmail
@@ -5,7 +5,7 @@
#
# PROVIDE: mail
-# REQUIRE: LOGIN
+# REQUIRE: LOGIN cleanvar
# we make mail start late, so that things like .forward's are not
# processed until the system is fully operational
diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd
index e77ddab03352..2f300d8405cd 100755
--- a/etc/rc.d/sshd
+++ b/etc/rc.d/sshd
@@ -5,7 +5,7 @@
#
# PROVIDE: sshd
-# REQUIRE: LOGIN
+# REQUIRE: LOGIN cleanvar
. /etc/rc.subr
diff --git a/etc/rc.d/watchdogd b/etc/rc.d/watchdogd
index 9dc22a59c769..3e12f54be96a 100644
--- a/etc/rc.d/watchdogd
+++ b/etc/rc.d/watchdogd
@@ -28,7 +28,7 @@
#
# PROVIDE: watchdogd
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON cleanvar
# KEYWORD: nojail
. /etc/rc.subr