#!/bin/sh
-# OSSEC Controls OSSEC HIDS
+# OSSEC Controls OSSEC HIDS
# Author: Daniel B. Cid <dcid@ossec.net>
# Modified for slackware by Jack S. Lai
-
. /etc/ossec-init.conf
if [ "X${DIRECTORY}" = "X" ]; then
DIRECTORY="/var/ossec"
fi
-
start() {
- ${DIRECTORY}/bin/ossec-control start
+ ${DIRECTORY}/bin/ossec-control start
}
stop() {
- ${DIRECTORY}/bin/ossec-control stop
+ ${DIRECTORY}/bin/ossec-control stop
}
status() {
- ${DIRECTORY}/bin/ossec-control status
+ ${DIRECTORY}/bin/ossec-control status
}
-
case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- status)
+start)
+ start
+ ;;
+stop)
+ stop
+ ;;
+restart)
+ stop
+ start
+ ;;
+status)
status
- ;;
- *)
- echo "*** Usage: $0 {start|stop|restart|status}"
- exit 1
+ ;;
+*)
+ echo "*** Usage: $0 {start|stop|restart|status}"
+ exit 1
esac
exit 0