rc.shutdown (85219) | rc.shutdown (86856) |
---|---|
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 85219 2001-10-20 04:33:02Z darrenr $ | 27# $FreeBSD: head/etc/rc.shutdown 86856 2001-11-24 15:36:30Z darrenr $ |
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' --- 83 unchanged lines hidden (view full) --- 119 ${script} stop) 120 fi 121 done 122 IFS="${script_save_sep}" 123 echo '.' 124 ;; 125esac 126 | 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' --- 83 unchanged lines hidden (view full) --- 119 ${script} stop) 120 fi 121 done 122 IFS="${script_save_sep}" 123 echo '.' 124 ;; 125esac 126 |
127# Save IP Filter state tables | 127# Insert other shutdown procedures here |
128 | 128 |
129# Saving firewall state tables should be done last 130echo -n 'Saving firewall state tables:' 131 132# Save IP-filter state tables |
|
129case ${ipfs_enable} in 130[Yy][Ee][Ss]) | 133case ${ipfs_enable} in 134[Yy][Ee][Ss]) |
131 echo -n 'Saving IP Filter state tables:' 132 eval ${ipfs_program:-/sbin/ipfs -W} ${ipfs_flags} | 135 echo -n ' ipfs' 136 ${ipfs_program:-/sbin/ipfs} -W ${ipfs_flags} |
133 ;; 134esac 135 | 137 ;; 138esac 139 |
136echo . 137 138# Insert other shutdown procedures here 139 | |
140echo '.' 141exit 0 | 140echo '.' 141exit 0 |