Add the shutdown KEYWORD to those scripts that start persistent services

to allow them to do a "clean" shutdown.

I purposely avoided making changes to network-related stuff since the
system shutting down is pretty conclusive, and there may be complicated
dependencies on the network that I would rather not try to unravel.

I also skipped kerberos-related stuff for the reasons above, and
because I have no way to test it.
This commit is contained in:
dougb 2008-07-16 19:50:29 +00:00
parent cc4d6b8e36
commit f25eee8d08
34 changed files with 34 additions and 19 deletions

View File

@ -6,7 +6,7 @@
# PROVIDE: amd
# REQUIRE: rpcbind ypbind nfsclient cleanvar ldconfig
# BEFORE: DAEMON
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: apmd
# REQUIRE: DAEMON apm
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -5,7 +5,7 @@
# PROVIDE: bsnmpd
# REQUIRE: NETWORKING syslogd
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: bthidd
# REQUIRE: DAEMON hcsecd
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: devd
# REQUIRE: netif network_ipv6
# BEFORE: NETWORKING mountcritremote
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -5,6 +5,7 @@
# PROVIDE: ftp-proxy
# REQUIRE: DAEMON pf
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -5,6 +5,7 @@
# PROVIDE: ftpd
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: hcsecd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -5,7 +5,7 @@
# PROVIDE: idmapd
# REQUIRE: rpcbind
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -8,6 +8,7 @@
# PROVIDE: keyserv
# REQUIRE: ypbind
# BEFORE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -7,7 +7,7 @@
# PROVIDE: lockd
# REQUIRE: nfsserver nfsclient nfsd rpcbind statd
# BEFORE: DAEMON
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,6 +6,7 @@
# PROVIDE: lpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -5,7 +5,7 @@
# PROVIDE: mountd
# REQUIRE: NETWORKING nfsserver rpcbind quota
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -5,7 +5,7 @@
# PROVIDE: moused
# REQUIRE: DAEMON cleanvar
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -5,7 +5,7 @@
# PROVIDE: nfsd
# REQUIRE: mountd
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,6 +6,7 @@
# PROVIDE: nscd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable nscd:

View File

@ -6,7 +6,7 @@
# PROVIDE: ntpd
# REQUIRE: DAEMON ntpdate cleanvar devfs
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: powerd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -5,6 +5,7 @@
# PROVIDE: rpcbind
# REQUIRE: NETWORKING ntpdate syslogd named
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: rtadvd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,6 +6,7 @@
# PROVIDE: rwho
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: sdpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -7,6 +7,7 @@
# REQUIRE: LOGIN cleanvar
# we make mail start late, so that things like .forward's are not
# processed until the system is fully operational
# KEYWORD: shutdown
# XXX - Get together with sendmail mantainer to figure out how to
# better handle SENDMAIL_ENABLE and 3rd party MTAs.

View File

@ -5,6 +5,7 @@
# PROVIDE: sshd
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -7,7 +7,7 @@
# PROVIDE: statd
# REQUIRE: nfsserver nfsclient nfsd rpcbind
# BEFORE: DAEMON
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,7 +6,7 @@
# PROVIDE: timed
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -4,7 +4,7 @@
# PROVIDE: ugidfw
# BEFORE: LOGIN
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -29,7 +29,7 @@
# PROVIDE: watchdogd
# REQUIRE: DAEMON cleanvar
# KEYWORD: nojail
# KEYWORD: nojail shutdown
. /etc/rc.subr

View File

@ -6,6 +6,7 @@
# PROVIDE: ypbind
# REQUIRE: ypserv
# BEFORE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -6,6 +6,7 @@
# PROVIDE: yppasswdd
# REQUIRE: ypserv ypbind
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -5,6 +5,7 @@
# PROVIDE: ypserv
# REQUIRE: rpcbind
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -5,6 +5,7 @@
# PROVIDE: ypset
# REQUIRE: ypbind
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -5,6 +5,7 @@
# PROVIDE: ypupdated
# REQUIRE: rpcbind ypserv
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -5,6 +5,7 @@
# PROVIDE: ypxfrd
# REQUIRE: rpcbind ypserv
# KEYWORD: shutdown
. /etc/rc.subr