Article View: comp.sys.next.sysadmin
Article #884Re: Question about shutdown.
From: Mike Matthews
Date: Tue, 01 Sep 1992 23:16
Date: Tue, 01 Sep 1992 23:16
23 lines
1227 bytes
1227 bytes
In article <1992Sep1.080920.18289@csus.edu> eps@cs.sfsu.edu writes: >In article <1992Aug25.150237.209@afs.com> > Michael_Pizolato@afs.com (Michael Pizolato) writes: >>Is there a file that gets executed at shutdown, like rc and rc.local get >>executed at startup? >No. > -=EPS=- But you can, of course, replace 'halt' (or 'shutdown' I suppose) with a shell script that does what you want then calls the original with whatever arguments you desire. I have /etc/halt play a C3P0 sound "If you won't be needing me, I think I'll shut down for a while" and then halts. The power key does an /etc/halt -e -p so this works for that as well. ------ Mike Matthews, matthews@oberon.umd.edu (NeXTmail accepted) ------ The probability of someone watching you is proportional to the stupidity of your action.
Technical Details
Message-ID:
<15246@umd5.umd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!umd5!oberon.umd.edu!matthewsReferences:
<1992Aug25.150237.209@afs.com> <1992Sep1.080920.18289@csus.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!umd5!oberon.umd.edu!matthews From: matthews@oberon.umd.edu (Mike Matthews) Newsgroups: comp.sys.next.sysadmin Subject: Re: Question about shutdown. Message-ID: <15246@umd5.umd.edu> Date: 1 Sep 92 23:16:21 GMT References: <1992Aug25.150237.209@afs.com> <1992Sep1.080920.18289@csus.edu> Sender: news@umd5.umd.edu Organization: /etc/organization Lines: 26