summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-04-02 22:53:07 +0000
committerdes <des@FreeBSD.org>2007-04-02 22:53:07 +0000
commit993cec31de8c550802ff6e570b2bcf3c032339f6 (patch)
treed92fab41d74cf18a040f68831ab4e3240e3363c1 /etc/rc.d
parent006f27015b681035a3197ad78129b4e085590cd0 (diff)
downloadFreeBSD-src-993cec31de8c550802ff6e570b2bcf3c032339f6.zip
FreeBSD-src-993cec31de8c550802ff6e570b2bcf3c032339f6.tar.gz
Add a dummy script, FILESYSTEMS, which depends on root and mountcritlocal
and takes over mountcritlocal's role as the early / late divider. This makes it far easier to add rc scripts which need to run early, such as a startup script for zfs, which is right around the corner. This change should be a no-op; I have verified that the only change in rcorder's output is the insertion of FILESYSTEMS immediately after mountcritlocal. MFC after: 3 weeks
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/FILESYSTEMS12
-rwxr-xr-xetc/rc.d/Makefile2
-rw-r--r--etc/rc.d/addswap2
-rw-r--r--etc/rc.d/adjkerntz2
-rwxr-xr-xetc/rc.d/bootconf.sh2
-rw-r--r--etc/rc.d/cleanvar2
-rw-r--r--etc/rc.d/geli22
-rw-r--r--etc/rc.d/hostname2
-rw-r--r--etc/rc.d/ip6addrctl2
-rwxr-xr-xetc/rc.d/ipfilter2
-rwxr-xr-xetc/rc.d/ipmon2
-rwxr-xr-xetc/rc.d/ipsec2
-rw-r--r--etc/rc.d/isdnd2
-rw-r--r--etc/rc.d/kldxref2
-rwxr-xr-xetc/rc.d/mountcritremote2
-rw-r--r--etc/rc.d/netif2
-rw-r--r--etc/rc.d/pf2
-rw-r--r--etc/rc.d/pflog2
-rw-r--r--etc/rc.d/pfsync2
-rw-r--r--etc/rc.d/power_profile2
-rw-r--r--etc/rc.d/var2
21 files changed, 32 insertions, 20 deletions
diff --git a/etc/rc.d/FILESYSTEMS b/etc/rc.d/FILESYSTEMS
new file mode 100644
index 0000000..cff420e
--- /dev/null
+++ b/etc/rc.d/FILESYSTEMS
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: FILESYSTEMS
+# REQUIRE: root mountcritlocal
+
+# This is a dummy dependency, for services which require file systems
+# to be mounted before starting. It also serves as the default early /
+# late divider; after this point, rc.d directories are rescanned to
+# catch scripts from other file systems than /.
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index 5808d9c..aca2e20 100755
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -3,7 +3,7 @@
.include <bsd.own.mk>
-FILES= DAEMON LOGIN NETWORKING SERVERS \
+FILES= DAEMON FILESYSTEMS LOGIN NETWORKING SERVERS \
abi accounting addswap adjkerntz amd \
apm apmd archdep atm1 atm2 atm3 auditd auto_linklocal \
bgfsck bluetooth bootparams bridge bsnmpd bthidd \
diff --git a/etc/rc.d/addswap b/etc/rc.d/addswap
index cc012ae..8ca3cf8 100644
--- a/etc/rc.d/addswap
+++ b/etc/rc.d/addswap
@@ -6,7 +6,7 @@
#
# PROVIDE: addswap
-# REQUIRE: mountcritlocal
+# REQUIRE: FILESYSTEMS
# BEFORE: sysctl
# KEYWORD: nojail
diff --git a/etc/rc.d/adjkerntz b/etc/rc.d/adjkerntz
index b420653..77e1e9d 100644
--- a/etc/rc.d/adjkerntz
+++ b/etc/rc.d/adjkerntz
@@ -4,7 +4,7 @@
#
# PROVIDE: adjkerntz
-# REQUIRE: mountcritlocal random
+# REQUIRE: FILESYSTEMS random
# BEFORE: netif
# KEYWORD: nojail
diff --git a/etc/rc.d/bootconf.sh b/etc/rc.d/bootconf.sh
index 662dfae..6694a3f 100755
--- a/etc/rc.d/bootconf.sh
+++ b/etc/rc.d/bootconf.sh
@@ -5,7 +5,7 @@
#
# PROVIDE: bootconf
-# REQUIRE: mountcritlocal
+# REQUIRE: FILESYSTEMS
bootconf_start()
{
diff --git a/etc/rc.d/cleanvar b/etc/rc.d/cleanvar
index b075738..9b708fb 100644
--- a/etc/rc.d/cleanvar
+++ b/etc/rc.d/cleanvar
@@ -4,7 +4,7 @@
#
# PROVIDE: cleanvar
-# REQUIRE: mountcritlocal var
+# REQUIRE: FILESYSTEMS var
. /etc/rc.subr
diff --git a/etc/rc.d/geli2 b/etc/rc.d/geli2
index a7802b3..50f13aa 100644
--- a/etc/rc.d/geli2
+++ b/etc/rc.d/geli2
@@ -28,7 +28,7 @@
#
# PROVIDE: geli2
-# REQUIRE: mountcritlocal
+# REQUIRE: FILESYSTEMS
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/hostname b/etc/rc.d/hostname
index 913717f..6d0f12e 100644
--- a/etc/rc.d/hostname
+++ b/etc/rc.d/hostname
@@ -27,7 +27,7 @@
#
# PROVIDE: hostname
-# REQUIRE: mountcritlocal
+# REQUIRE: FILESYSTEMS
# BEFORE: netif
. /etc/rc.subr
diff --git a/etc/rc.d/ip6addrctl b/etc/rc.d/ip6addrctl
index 910580e..88e1f99 100644
--- a/etc/rc.d/ip6addrctl
+++ b/etc/rc.d/ip6addrctl
@@ -4,7 +4,7 @@
#
# PROVIDE: ip6addrctl
-# REQUIRE: mountcritlocal netif
+# REQUIRE: FILESYSTEMS netif
# BEFORE: network_ipv6
# KEYWORD: nojail
diff --git a/etc/rc.d/ipfilter b/etc/rc.d/ipfilter
index ca9ddc8..5446787 100755
--- a/etc/rc.d/ipfilter
+++ b/etc/rc.d/ipfilter
@@ -5,7 +5,7 @@
#
# PROVIDE: ipfilter
-# REQUIRE: root mountcritlocal
+# REQUIRE: root FILESYSTEMS
# BEFORE: netif
# KEYWORD: nojail
diff --git a/etc/rc.d/ipmon b/etc/rc.d/ipmon
index 00d61a5..7bbe23b 100755
--- a/etc/rc.d/ipmon
+++ b/etc/rc.d/ipmon
@@ -5,7 +5,7 @@
#
# PROVIDE: ipmon
-# REQUIRE: mountcritlocal hostname sysctl cleanvar ipfilter
+# REQUIRE: FILESYSTEMS hostname sysctl cleanvar ipfilter
# BEFORE: SERVERS
# KEYWORD: nojail
diff --git a/etc/rc.d/ipsec b/etc/rc.d/ipsec
index eb57fdb..30e7a69 100755
--- a/etc/rc.d/ipsec
+++ b/etc/rc.d/ipsec
@@ -5,7 +5,7 @@
#
# PROVIDE: ipsec
-# REQUIRE: root mountcritlocal
+# REQUIRE: root FILESYSTEMS
# BEFORE: DAEMON mountcritremote
# KEYWORD: nojail
diff --git a/etc/rc.d/isdnd b/etc/rc.d/isdnd
index 60ba1f0..1db3ff6 100644
--- a/etc/rc.d/isdnd
+++ b/etc/rc.d/isdnd
@@ -7,7 +7,7 @@
#
# PROVIDE: isdnd
-# REQUIRE: netif mountcritlocal cleanvar
+# REQUIRE: netif FILESYSTEMS cleanvar
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/kldxref b/etc/rc.d/kldxref
index 8663213..936271f 100644
--- a/etc/rc.d/kldxref
+++ b/etc/rc.d/kldxref
@@ -4,7 +4,7 @@
#
# PROVIDE: kldxref
-# REQUIRE: root mountcritlocal
+# REQUIRE: root FILESYSTEMS
# BEFORE: netif
# KEYWORD: nojail
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote
index 15ea27f..a1b7bdb 100755
--- a/etc/rc.d/mountcritremote
+++ b/etc/rc.d/mountcritremote
@@ -5,7 +5,7 @@
#
# PROVIDE: mountcritremote
-# REQUIRE: NETWORKING root mountcritlocal cleanvar ipsec
+# REQUIRE: NETWORKING root FILESYSTEMS cleanvar ipsec
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/netif b/etc/rc.d/netif
index 8e6203d..3b2baab 100644
--- a/etc/rc.d/netif
+++ b/etc/rc.d/netif
@@ -26,7 +26,7 @@
#
# PROVIDE: netif
-# REQUIRE: atm1 ipfilter mountcritlocal serial sppp sysctl
+# REQUIRE: atm1 ipfilter FILESYSTEMS serial sppp sysctl
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/pf b/etc/rc.d/pf
index 331fe8e..b5c7fda 100644
--- a/etc/rc.d/pf
+++ b/etc/rc.d/pf
@@ -4,7 +4,7 @@
#
# PROVIDE: pf
-# REQUIRE: root mountcritlocal netif pflog pfsync
+# REQUIRE: root FILESYSTEMS netif pflog pfsync
# BEFORE: routing
# KEYWORD: nojail
diff --git a/etc/rc.d/pflog b/etc/rc.d/pflog
index 09a127a..0761813 100644
--- a/etc/rc.d/pflog
+++ b/etc/rc.d/pflog
@@ -4,7 +4,7 @@
#
# PROVIDE: pflog
-# REQUIRE: root mountcritlocal netif cleanvar
+# REQUIRE: root FILESYSTEMS netif cleanvar
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/pfsync b/etc/rc.d/pfsync
index e7a0664..ef80b1a 100644
--- a/etc/rc.d/pfsync
+++ b/etc/rc.d/pfsync
@@ -4,7 +4,7 @@
#
# PROVIDE: pfsync
-# REQUIRE: root mountcritlocal netif
+# REQUIRE: root FILESYSTEMS netif
# KEYWORD: nojail
. /etc/rc.subr
diff --git a/etc/rc.d/power_profile b/etc/rc.d/power_profile
index 1b97fab..5b33d70 100644
--- a/etc/rc.d/power_profile
+++ b/etc/rc.d/power_profile
@@ -9,7 +9,7 @@
#
# PROVIDE: power_profile
-# REQUIRE: mountcritlocal syslogd
+# REQUIRE: FILESYSTEMS syslogd
# KEYWORD: nojail nostart
. /etc/rc.subr
diff --git a/etc/rc.d/var b/etc/rc.d/var
index e11b3c7..5e2cde2 100644
--- a/etc/rc.d/var
+++ b/etc/rc.d/var
@@ -28,7 +28,7 @@
#
# PROVIDE: var
-# REQUIRE: mountcritlocal
+# REQUIRE: FILESYSTEMS
. /etc/rc.subr
OpenPOWER on IntegriCloud