#!/bin/sh # # $Id: sudoscriptd.solaris.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 out put and manages the log files. # # Check that the daemon exists. [ -f /usr/local/sbin/sudoscriptd ] || exit 0 # See how we were called. case "$1" in start) echo "Starting sudoscriptd." /usr/local/sbin/sudoscriptd ;; stop) echo "Shutting down susoscriptd" kill -HUP `cat /var/run/sudoscriptd.pid` echo "" ;; restart) $0 stop $0 start ;; *) echo "Usage: sudoscriptd {start|stop|restart}" exit 1 esac exit 0