diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index ee8e02484367..54b88b73d524 100644 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -40,7 +40,6 @@ FILES= DAEMON \ hostid_save \ hostname \ ${_inetd} \ - ip6addrctl \ ipfilter \ ipfs \ ipfw \ @@ -65,8 +64,6 @@ FILES= DAEMON \ mdconfig \ mdconfig2 \ mountd \ - mroute6d \ - mrouted \ msgs \ natd \ netif \ @@ -82,34 +79,21 @@ FILES= DAEMON \ pf \ pflog \ pfsync \ - powerd \ - power_profile \ - ppp \ - pppoed \ pwcheck \ quota \ random \ rarpd \ rctl \ resolv \ - rfcomm_pppd_server \ root \ - route6d \ - routed \ routing \ rpcbind \ - rtadvd \ - rtsold \ savecore \ - sdpd \ securelevel \ serial \ - sppp \ ${_sshd} \ statd \ static_arp \ - static_ndp \ - stf \ swap \ swaplate \ sysctl \ @@ -132,6 +116,14 @@ FILES= DAEMON \ FILES+= accounting .endif +.if ${MK_ACPI} != "no" +FILES+= power_profile +.endif + +.if ${MK_ACPI} != "no" || ${MK_APM} != "no" +FILES+= powerd +.endif + .if ${MK_AMD} != "no" FILES+= amd .endif @@ -162,6 +154,8 @@ FILES+= autounmountd _bluetooth= bluetooth _bthidd= bthidd _hcsecd= hcsecd +FILES+= rfcomm_pppd_server +FILES+= sdpd _ubthidhci= ubthidhci .endif @@ -197,6 +191,16 @@ FILES+= hastd _inetd= inetd .endif +.if ${MK_INET6} != "no" +FILES+= ip6addrctl +FILES+= mroute6d +FILES+= route6d +FILES+= stf +FILES+= rtadvd +FILES+= rtsold +FILES+= static_ndp +.endif + .if ${MK_ISCSI} != "no" FILES+= iscsictl FILES+= iscsid @@ -259,10 +263,20 @@ _sshd= sshd FILES+= ftp-proxy .endif +.if ${MK_PPP} != "no" +FILES+= ppp +FILES+= pppoed +FILES+= sppp +.endif + .if ${MK_RCMDS} != "no" FILES+= rwho .endif +.if ${MK_ROUTED} != "no" +FILES+= routed +.endif + .if ${MK_SENDMAIL} != "no" FILES+= sendmail .endif diff --git a/etc/rc.d/NETWORKING b/etc/rc.d/NETWORKING index 6b76260df3ff..fbfedea51eaf 100755 --- a/etc/rc.d/NETWORKING +++ b/etc/rc.d/NETWORKING @@ -4,9 +4,9 @@ # # PROVIDE: NETWORKING NETWORK -# REQUIRE: netif netoptions routing ppp ipfw stf -# REQUIRE: defaultroute routed mrouted route6d mroute6d resolv bridge -# REQUIRE: static_arp static_ndp +# REQUIRE: netif netoptions routing ipfw +# REQUIRE: defaultroute resolv bridge +# REQUIRE: static_arp # This is a dummy dependency, for services which require networking # to be operational before starting. diff --git a/etc/rc.d/bridge b/etc/rc.d/bridge index 93e68a20ab07..92518e4a0870 100755 --- a/etc/rc.d/bridge +++ b/etc/rc.d/bridge @@ -26,7 +26,7 @@ # # PROVIDE: bridge -# REQUIRE: netif ppp stf +# REQUIRE: netif # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/defaultroute b/etc/rc.d/defaultroute index 8e87775ffb98..40736ab881e9 100755 --- a/etc/rc.d/defaultroute +++ b/etc/rc.d/defaultroute @@ -6,7 +6,7 @@ # # PROVIDE: defaultroute -# REQUIRE: devd netif stf +# REQUIRE: devd netif # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/gssd b/etc/rc.d/gssd index b6ffc9299eac..22674cb4161c 100755 --- a/etc/rc.d/gssd +++ b/etc/rc.d/gssd @@ -5,7 +5,7 @@ # PROVIDE: gssd # REQUIRE: root -# BEFORE: nfsd +# BEFORE: nfsd nfsuserd # KEYWORD: nojail shutdown . /etc/rc.subr diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw index e84445c8914a..f56c848a78ef 100755 --- a/etc/rc.d/ipfw +++ b/etc/rc.d/ipfw @@ -4,7 +4,6 @@ # # PROVIDE: ipfw -# REQUIRE: ppp # KEYWORD: nojailvnet . /etc/rc.subr diff --git a/etc/rc.d/local_unbound b/etc/rc.d/local_unbound index b82602529ec5..6094ff557fd1 100755 --- a/etc/rc.d/local_unbound +++ b/etc/rc.d/local_unbound @@ -4,7 +4,7 @@ # # PROVIDE: local_unbound -# REQUIRE: FILESYSTEMS netif resolv +# REQUIRE: FILESYSTEMS netif resolv routing # BEFORE: NETWORKING # KEYWORD: shutdown diff --git a/etc/rc.d/netif b/etc/rc.d/netif index 8e89eddcfcd0..30660e4ae5c5 100755 --- a/etc/rc.d/netif +++ b/etc/rc.d/netif @@ -26,7 +26,7 @@ # # PROVIDE: netif -# REQUIRE: FILESYSTEMS serial sppp sysctl +# REQUIRE: FILESYSTEMS serial sysctl # REQUIRE: ipfilter ipfs # KEYWORD: nojailvnet diff --git a/etc/rc.d/nsswitch b/etc/rc.d/nsswitch index caca52f9b2e7..b31c414d39ca 100755 --- a/etc/rc.d/nsswitch +++ b/etc/rc.d/nsswitch @@ -27,7 +27,7 @@ # # PROVIDE: nsswitch -# REQUIRE: root +# REQUIRE: root routing # BEFORE: NETWORK . /etc/rc.subr diff --git a/etc/rc.d/ppp b/etc/rc.d/ppp index 4c3b37740cb7..b0d2b12f52cf 100755 --- a/etc/rc.d/ppp +++ b/etc/rc.d/ppp @@ -5,6 +5,7 @@ # PROVIDE: ppp # REQUIRE: netif +# BEFORE: bridge ipfw routing # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv index debd3aa9020b..aa3afc95e8a2 100755 --- a/etc/rc.d/resolv +++ b/etc/rc.d/resolv @@ -28,7 +28,7 @@ # # PROVIDE: resolv -# REQUIRE: netif FILESYSTEMS +# REQUIRE: netif FILESYSTEMS routing # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/route6d b/etc/rc.d/route6d index eec74cfc3bb2..906b167e6b4b 100755 --- a/etc/rc.d/route6d +++ b/etc/rc.d/route6d @@ -4,7 +4,8 @@ # # PROVIDE: route6d -# REQUIRE: netif routing +# REQUIRE: bridge netif routing +# BEFORE: NETWORKING # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/routed b/etc/rc.d/routed index 55bab01d35e0..0a10dd9ad963 100755 --- a/etc/rc.d/routed +++ b/etc/rc.d/routed @@ -4,7 +4,8 @@ # # PROVIDE: routed -# REQUIRE: netif routing +# REQUIRE: bridge netif routing +# BEFORE: NETWORKING # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/routing b/etc/rc.d/routing index b38147153b0a..1814d1ebb278 100755 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -6,7 +6,7 @@ # # PROVIDE: routing -# REQUIRE: netif ppp stf +# REQUIRE: netif # KEYWORD: nojailvnet . /etc/rc.subr diff --git a/etc/rc.d/static_arp b/etc/rc.d/static_arp index 6283b56ef087..edea8d7afad0 100755 --- a/etc/rc.d/static_arp +++ b/etc/rc.d/static_arp @@ -30,7 +30,7 @@ # # PROVIDE: static_arp -# REQUIRE: netif +# REQUIRE: netif routing # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/static_ndp b/etc/rc.d/static_ndp index 314adbf7c565..a5a1e5f70b8d 100755 --- a/etc/rc.d/static_ndp +++ b/etc/rc.d/static_ndp @@ -30,7 +30,8 @@ # # PROVIDE: static_ndp -# REQUIRE: netif +# REQUIRE: netif routing +# BEFORE: NETWORKING # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/stf b/etc/rc.d/stf index feb7b5214f74..4d19b7989432 100755 --- a/etc/rc.d/stf +++ b/etc/rc.d/stf @@ -4,6 +4,7 @@ # PROVIDE: stf # REQUIRE: netif +# BEFORE: bridge defaultroute NETWORKING routing # KEYWORD: nojail . /etc/rc.subr