Deleted Added
full compact
rc.shutdown (117324) rc.shutdown (130151)
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 117324 2003-07-08 02:52:14Z mtm $
27# $FreeBSD: head/etc/rc.shutdown 130151 2004-06-06 11:46:29Z schweikh $
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'

--- 25 unchanged lines hidden (view full) ---

61
62# If requested, start a watchdog timer in the background which
63# will terminate rc.shutdown if rc.shutdown doesn't complete
64# within the specified time.
65#
66_rcshutdown_watchdog=
67if [ -n "$rcshutdown_timeout" ]; then
68 debug "Initiating watchdog timer."
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'

--- 25 unchanged lines hidden (view full) ---

61
62# If requested, start a watchdog timer in the background which
63# will terminate rc.shutdown if rc.shutdown doesn't complete
64# within the specified time.
65#
66_rcshutdown_watchdog=
67if [ -n "$rcshutdown_timeout" ]; then
68 debug "Initiating watchdog timer."
69 sleep $rcshutdown_timeout && (
69 sleep $rcshutdown_timeout && (
70 _msg="$rcshutdown_timeout second watchdog" \
71 " timeout expired. Shutdown terminated."
72 logger -t rc.shutdown "$_msg"
73 echo "$_msg"
74 date
75 kill -KILL $$ >/dev/null 2>&1
76 ) &
77 _rcshutdown_watchdog=$!

--- 25 unchanged lines hidden ---
70 _msg="$rcshutdown_timeout second watchdog" \
71 " timeout expired. Shutdown terminated."
72 logger -t rc.shutdown "$_msg"
73 echo "$_msg"
74 date
75 kill -KILL $$ >/dev/null 2>&1
76 ) &
77 _rcshutdown_watchdog=$!

--- 25 unchanged lines hidden ---