home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / lib / acct / shutacct < prev    next >
Encoding:
Text File  |  1988-06-26  |  538 b   |  17 lines

  1. :
  2. #    Copyright (c) 1984, 1986, 1987, 1988 AT&T
  3. #      All Rights Reserved
  4.  
  5. #    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
  6. #    The copyright notice above does not evidence any
  7. #    actual or intended publication of such source code.
  8.  
  9. #ident    "@(#)acct:shutacct.sh    1.4"
  10. #    "shutacct [arg] - shuts down acct, called from /etc/shutdown"
  11. #    "whenever system taken down"
  12. #    "arg    added to /etc/wtmp to record reason, defaults to shutdown"
  13. PATH=/usr/lib/acct:/bin:/usr/bin:/etc
  14. _reason=${1-"acctg off"}
  15. acctwtmp  "${_reason}"  >>/etc/wtmp
  16. turnacct off
  17.