2 # OSSEC Controls OSSEC HIDS
3 # Author: Daniel B. Cid <dcid@ossec.net>
4 # Modified for Debian by Michael Starks (patch by Costas Drogos)
8 # Required-Start: $remote_fs $syslog
9 # Required-Stop: $remote_fs $syslog
10 # Should-Start: $network
11 # Should-Stop: $network
12 # Default-Start: 2 3 4 5
14 # Short-Description: Start and stop OSSEC HIDS
15 # Description: Controls OSSEC HIDS daemons
19 . /etc/ossec-init.conf
20 if [ "X${DIRECTORY}" = "X" ]; then
21 DIRECTORY="/var/ossec"
26 ${DIRECTORY}/bin/ossec-control start
30 ${DIRECTORY}/bin/ossec-control stop
34 ${DIRECTORY}/bin/ossec-control status
53 echo "*** Usage: $0 {start|stop|restart|status}"