rc.shutdown (187685) | rc.shutdown (232976) |
---|---|
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 187685 2009-01-25 10:31:45Z bz $ | 27# $FreeBSD: head/etc/rc.shutdown 232976 2012-03-14 16:10:39Z ed $ |
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 | 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' | 35stty status '^T' 2> /dev/null |
36 37# Set shell to ignore SIGINT (2), but not children; 38# shell catches SIGQUIT (3) and returns to single user after fsck. 39trap : 2 40trap : 3 # shouldn't be needed 41 42HOME=/ 43PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin --- 65 unchanged lines hidden --- | 36 37# Set shell to ignore SIGINT (2), but not children; 38# shell catches SIGQUIT (3) and returns to single user after fsck. 39trap : 2 40trap : 3 # shouldn't be needed 41 42HOME=/ 43PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin --- 65 unchanged lines hidden --- |