X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=ossec-hids-debian.init;fp=ossec-hids-debian.init;h=0842549a1bdec8f375eeba067ac741df26fac645;hb=60a2e5ba49290aeb71d745f194e63160781ca78c;hp=0000000000000000000000000000000000000000;hpb=0105f1709981e786d9e6e111548defaf944e8ef9;p=ossec-hids.git diff --git a/ossec-hids-debian.init b/ossec-hids-debian.init new file mode 100755 index 0000000..0842549 --- /dev/null +++ b/ossec-hids-debian.init @@ -0,0 +1,64 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: ossec-hids +# Required-Start: $local_fs $remote_fs $syslog +# Required-Stop: $local_fs $remote_fs $syslog +# Should-Start: $all +# Should-Stop: $all +# 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 + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +. /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