rc.shutdown revision 51231
127837Sdavidn#!/bin/sh
250472Speter# $FreeBSD: head/etc/rc.shutdown 51231 1999-09-13 15:44:20Z sheldonh $
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
2051231Ssheldonhecho -n "Shutting down daemon processes: "
2127837Sdavidn
2227837Sdavidn# Insert shutdown procedures here
2327837Sdavidn
2427837Sdavidn
2527837Sdavidnecho '.'
2627837Sdavidnexit 0
27