rc.shutdown revision 53550
127837Sdavidn#!/bin/sh 250472Speter# $FreeBSD: head/etc/rc.shutdown 53550 1999-11-22 04:23:11Z dillon $ 327837Sdavidn 451231Ssheldonh# Site-specific closing actions for daemons run by init on shutdown, 527837Sdavidn# or before going single-user from multi-user. 627837Sdavidn# Output and errors are directed to console by init, and the 727837Sdavidn# console is the controlling terminal. 827837Sdavidn 927837Sdavidnstty status '^T' 1027837Sdavidn 1127837Sdavidn# Set shell to ignore SIGINT (2), but not children; 1227837Sdavidn# shell catches SIGQUIT (3) and returns to single user after fsck. 1327837Sdavidntrap : 2 1427837Sdavidntrap : 3 # shouldn't be needed 1527837Sdavidn 1651231SsheldonhHOME=/ 1727837SdavidnPATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin 1851231Ssheldonhexport HOME PATH 1927837Sdavidn 2053550Sdillon# Check if /var/db/mounttab is clean. 2153550Sdilloncase $1 in 2253550Sdillonreboot) 2353550Sdillon if [ -f /var/db/mounttab ]; then 2453550Sdillon rpc.umntall 2553550Sdillon fi 2653550Sdillon ;; 2753550Sdillonesac 2853550Sdillon 2951231Ssheldonhecho -n "Shutting down daemon processes: " 3027837Sdavidn 3127837Sdavidn# Insert shutdown procedures here 3227837Sdavidn 3327837Sdavidn 3427837Sdavidnecho '.' 3527837Sdavidnexit 0 36