#!/bin/sh # # easd: Enterprise Audit Shell Server # chkconfig: 345 89 11 # description: Enterprise Audit Shell Server, which logs sessions from eash SERVICE=easd # Source function library. . /etc/rc.d/init.d/functions . /etc/sysconfig/network [ ${NETWORKING} = "no" ] && exit 0 if [ -r /etc/sysconfig/$SERVICE ] then . /etc/sysconfig/$SERVICE fi start() { gprintf "Starting $SERVICE: " daemon $SERVICE $WPAARGS RETVAL=$? if [ $RETVAL -eq 0 ] then touch /var/lock/subsys/$SERVICE fi echo return $RETVAL } stop() { gprintf "Shutting down $SERVICE: " killproc $SERVICE RETVAL=$? if [ $RETVAL -eq 0 ] then rm -f /var/lock/subsys/$SERVICE fi echo return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop start ;; condrestart) [ -e /var/lock/subsys/$SERVICE ] && (stop; start) ;; status) status $SERVICE ;; *) gprintf "Usage: %s {start|stop|restart|reload|condrestart|status}\n" "$0" exit 1 esac exit $?