Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.shutdown
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | if [ -n "$rcshutdown_timeout" ]; then | ||||
) & | ) & | ||||
_rcshutdown_watchdog=$! | _rcshutdown_watchdog=$! | ||||
fi | fi | ||||
# Determine the shutdown order of the /etc/rc.d scripts, | # Determine the shutdown order of the /etc/rc.d scripts, | ||||
# and perform the operation | # and perform the operation | ||||
# | # | ||||
rcorder_opts="-k shutdown" | rcorder_opts="-k shutdown" | ||||
if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then | if check_jail jailed; then | ||||
rcorder_opts="$rcorder_opts -s nojail" | rcorder_opts="$rcorder_opts -s nojail" | ||||
if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then | if ! check_jail vnet; then | ||||
rcorder_opts="$rcorder_opts -s nojailvnet" | rcorder_opts="$rcorder_opts -s nojailvnet" | ||||
fi | fi | ||||
fi | fi | ||||
case ${local_startup} in | case ${local_startup} in | ||||
[Nn][Oo] | '') ;; | [Nn][Oo] | '') ;; | ||||
*) find_local_scripts_new ;; | *) find_local_scripts_new ;; | ||||
esac | esac | ||||
Show All 19 Lines |