1#!/bin/sh
2#
3# $Id: sudoscriptd.solaris.init,v 1.2 2002/05/22 01:31:43 hbo Exp $
4# description: Starts and stops the sudoshell logging deamon
5#		sudoshell allows audited root shells. This daemon
6#		stores sudoshell's out put and manages the log files.
7
8#
9# Check that the daemon exists.
10[ -f /usr/local/sbin/sudoscriptd ] || exit 0
11
12
13# See how we were called.
14case "$1" in
15  start)
16        echo "Starting sudoscriptd."
17        /usr/local/sbin/sudoscriptd
18        ;;
19  stop)
20        echo "Shutting down susoscriptd"
21	kill -HUP `cat /var/run/sudoscriptd.pid`
22        echo ""
23        ;;
24  restart)
25        $0 stop
26        $0 start
27        ;;
28  *)
29        echo "Usage: sudoscriptd {start|stop|restart}"
30        exit 1
31esac
32exit 0
33