rc.shutdown (232976) | rc.shutdown (250804) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 1997 Ollivier Robert 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh 2# 3# Copyright (c) 1997 Ollivier Robert 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/etc/rc.shutdown 232976 2012-03-14 16:10:39Z ed $ | 27# $FreeBSD: head/etc/rc.shutdown 250804 2013-05-19 04:10:34Z jamie $ |
28# 29 30# Site-specific closing actions for daemons run by init on shutdown, 31# or before going single-user from multi-user. 32# Output and errors are directed to console by init, and the 33# console is the controlling terminal. 34 35stty status '^T' 2> /dev/null --- 40 unchanged lines hidden (view full) --- 76 ) & 77 _rcshutdown_watchdog=$! 78fi 79 80# Determine the shutdown order of the /etc/rc.d scripts, 81# and perform the operation 82# 83rcorder_opts="-k shutdown" | 28# 29 30# Site-specific closing actions for daemons run by init on shutdown, 31# or before going single-user from multi-user. 32# Output and errors are directed to console by init, and the 33# console is the controlling terminal. 34 35stty status '^T' 2> /dev/null --- 40 unchanged lines hidden (view full) --- 76 ) & 77 _rcshutdown_watchdog=$! 78fi 79 80# Determine the shutdown order of the /etc/rc.d scripts, 81# and perform the operation 82# 83rcorder_opts="-k shutdown" |
84[ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] && rcorder_opts="$rcorder_opts -s nojail" | 84if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then 85 rcorder_opts="$rcorder_opts -s nojail" 86 if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then 87 rcorder_opts="$rcorder_opts -s nojailvnet" 88 fi 89fi |
85 86case ${local_startup} in 87[Nn][Oo] | '') ;; 88*) find_local_scripts_new ;; 89esac 90 91files=`rcorder ${rcorder_opts} /etc/rc.d/* ${local_rc} 2>/dev/null` 92 --- 16 unchanged lines hidden --- | 90 91case ${local_startup} in 92[Nn][Oo] | '') ;; 93*) find_local_scripts_new ;; 94esac 95 96files=`rcorder ${rcorder_opts} /etc/rc.d/* ${local_rc} 2>/dev/null` 97 --- 16 unchanged lines hidden --- |