]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.shutdown
This commit was generated by cvs2svn to compensate for changes in r61201,
[FreeBSD/FreeBSD.git] / etc / rc.shutdown
1 #!/bin/sh
2 # $FreeBSD$
3
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
9 stty 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.
13 trap : 2
14 trap : 3        # shouldn't be needed
15
16 HOME=/
17 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
18 export HOME PATH
19
20 # Check if /var/db/mounttab is clean.
21 case $1 in
22 reboot)
23         if [ -f /var/db/mounttab ]; then
24                 rpc.umntall
25         fi
26         ;;
27 esac
28
29 echo -n "Shutting down daemon processes: "
30
31 # Insert shutdown procedures here
32
33
34 echo '.'
35 exit 0