#!/bin/sh # # $Id: sudoscriptd.irix.init,v 1.2 2002/05/22 01:31:43 hbo Exp $ # description: Starts and stops the sudoshell logging deamon # sudoshell allows audited root shells. This daemon # stores sudoshell's output and manages the log files. # IS_ON=/sbin/chkconfig CODE=/usr/freeware/bin/sudoscriptd WHAT='sudo script daemon' PID=/var/run/sudoscriptd.pid INIT=sudoscriptd # not used #OPT=/etc/config/sudoscriptd.options #------------------------------------------------------------ if $IS_ON verbose; then ECHO=echo else # For a quiet startup and shutdown ECHO=: fi # See how we were called. case "$1" in start) if [ -x $CODE ]; then $ECHO -n "Starting $WHAT" $CODE $ECHO '.' fi ;; stop) if [ -x $CODE ]; then $ECHO -n "Stopping $WHAT" kill -HUP `cat $PID` $ECHO '.' fi ;; restart) $0 stop $0 start ;; links) ln -s ../init.d/$INIT /etc/rc0.d/K01$INIT ln -s ../init.d/$INIT /etc/rc2.d/S98$INIT ;; *) echo "Usage: $0 {start|stop|restart|links}" exit 1 esac exit 0