#!/bin/sh ### BEGIN INIT INFO # Provides: ossec-hids # Required-Start: $local_fs $remote_fs $syslog # Required-Stop: $local_fs $remote_fs $syslog # Should-Start: $network # Should-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: OSSEC HIDS init script # Description: Init script for OSSEC HIDS services ### END INIT INFO # OSSEC Controls OSSEC HIDS # Author: Daniel B. Cid # Modified for slackware by Jack S. Lai # Modified for Debian package by Dinko Korunic # Modified for CARNet by Ivan Rako PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin . /lib/lsb/init-functions . /etc/ossec-init.conf if [ "X${DIRECTORY}" = "X" ]; then DIRECTORY="/var/ossec" fi start() { ${DIRECTORY}/bin/ossec-control start } stop() { ${DIRECTORY}/bin/ossec-control stop } status() { ${DIRECTORY}/bin/ossec-control status } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; force-reload) stop start ;; status) status ;; *) echo "*** Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0