home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / cmds / root.3 / usr / lib / acct / shutacct / shutacct~
Text File  |  1998-08-19  |  917b  |  22 lines

  1. #!/sbin/sh
  2.  
  3. # Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  4. #                                                                         
  5. #        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  6. #                   SANTA CRUZ OPERATION INC.                             
  7. #                                                                         
  8. #   The copyright notice above does not evidence any actual or intended   
  9. #   publication of such source code.                                      
  10.  
  11. #    copyright    "%c%"
  12.  
  13. #ident    "@(#)acct:common/cmd/acct/shutacct.sh    1.6.1.4"
  14. #ident "$Header: $"
  15. #    "shutacct [arg] - shuts down acct, called from /usr/sbin/shutdown"
  16. #    "whenever system taken down"
  17. #    "arg    added to /var/adm/wtmp to record reason, defaults to shutdown"
  18. PATH=/usr/lib/acct:/usr/bin:/usr/sbin
  19. _reason=${1-"acctg off"}
  20. acctwtmp  "${_reason}"  >>/var/adm/wtmp
  21. turnacct off
  22.