diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile | 4 | ||||
-rw-r--r-- | etc/rc.shutdown | 26 |
2 files changed, 28 insertions, 2 deletions
diff --git a/etc/Makefile b/etc/Makefile index 607099b..b19a125 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,5 +1,5 @@ # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 -# $Id: Makefile,v 1.152 1997/07/05 19:35:22 pst Exp $ +# $Id: Makefile,v 1.153 1997/07/18 03:49:47 asami Exp $ # -rw-r--r-- BINOWN= root @@ -9,7 +9,7 @@ BIN1= aliases amd.map csh.cshrc csh.login csh.logout dm.conf \ inetd.conf login.conf login.access motd modems networks \ newsyslog.conf phones pccard.conf.sample printcap profile protocols \ rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \ - etc.${MACHINE}/rc.${MACHINE} \ + rc.shutdown etc.${MACHINE}/rc.${MACHINE} \ remote security services shells \ syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ diff --git a/etc/rc.shutdown b/etc/rc.shutdown new file mode 100644 index 0000000..f935834 --- /dev/null +++ b/etc/rc.shutdown @@ -0,0 +1,26 @@ +#!/bin/sh +# $Id$ + +# site-specific closing actions for daemons run by init on shutdown +# or before going single-user from multi-user. +# Output and errors are directed to console by init, and the +# console is the controlling terminal. + +stty status '^T' + +# Set shell to ignore SIGINT (2), but not children; +# shell catches SIGQUIT (3) and returns to single user after fsck. +trap : 2 +trap : 3 # shouldn't be needed + +HOME=/; export HOME +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin +export PATH + +echo -n Shutting down daemon processes: + +# Insert shutdown procedures here + + +echo '.' +exit 0 |