updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / ossec-server / ossec.rc
blob12f33430d3a13b3983d3305e02c4537bd90f3fd6
1 #!/bin/sh
2 # OSSEC Controls OSSEC HIDS
3 # Author: Daniel B. Cid <dcid@ossec.net>
4 # Modified for slackware by Jack S. Lai
6 . /etc/ossec-init.conf
7 . /etc/rc.conf
8 . /etc/rc.d/functions
10 if [ "X${DIRECTORY}" = "X" ]; then
11 DIRECTORY="/var/ossec"
15 start() {
16 stat_busy "Starting OSSEC-HIDS"
17 ${DIRECTORY}/bin/ossec-control start > /dev/null
18 stat_done
21 stop() {
22 stat_busy "Stopping OSSEC-HIDS"
23 ${DIRECTORY}/bin/ossec-control stop > /dev/null
24 stat_done
27 case "$1" in
28 start)
29 start
31 stop)
32 stop
34 restart)
35 stop
36 start
39 echo "*** Usage: $0 {start|stop|restart}"
40 exit 1
41 esac
43 exit 0