1#!/bin/sh
| 1#!/bin/sh
|
2# $FreeBSD: head/etc/rc.shutdown 50472 1999-08-27 23:37:10Z peter $
| 2# $FreeBSD: head/etc/rc.shutdown 51231 1999-09-13 15:44:20Z sheldonh $
|
3
| 3
|
4# site-specific closing actions for daemons run by init on shutdown
| 4# Site-specific closing actions for daemons run by init on shutdown,
|
5# or before going single-user from multi-user. 6# Output and errors are directed to console by init, and the 7# console is the controlling terminal. 8 9stty status '^T' 10 11# Set shell to ignore SIGINT (2), but not children; 12# shell catches SIGQUIT (3) and returns to single user after fsck. 13trap : 2 14trap : 3 # shouldn't be needed 15
| 5# or before going single-user from multi-user. 6# Output and errors are directed to console by init, and the 7# console is the controlling terminal. 8 9stty status '^T' 10 11# Set shell to ignore SIGINT (2), but not children; 12# shell catches SIGQUIT (3) and returns to single user after fsck. 13trap : 2 14trap : 3 # shouldn't be needed 15
|
16HOME=/; export HOME
| 16HOME=/
|
17PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
| 17PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
|
18export PATH
| 18export HOME PATH
|
19
| 19
|
20echo -n Shutting down daemon processes:
| 20echo -n "Shutting down daemon processes: "
|
21 22# Insert shutdown procedures here 23 24 25echo '.' 26exit 0
| 21 22# Insert shutdown procedures here 23 24 25echo '.' 26exit 0
|