X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Finit%2Fossec-hids-debian.init;h=3175c8a78000d311db1b9225f07e078b9552839f;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=7778ffa3c1d5c51d16a587de5230452d2fd4debd;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b;p=ossec-hids.git diff --git a/src/init/ossec-hids-debian.init b/src/init/ossec-hids-debian.init index 7778ffa..3175c8a 100755 --- a/src/init/ossec-hids-debian.init +++ b/src/init/ossec-hids-debian.init @@ -1,5 +1,5 @@ #!/bin/sh -# OSSEC Controls OSSEC HIDS +# OSSEC Controls OSSEC HIDS # Author: Daniel B. Cid # Modified for Debian by Michael Starks (patch by Costas Drogos) @@ -7,7 +7,7 @@ # Provides: ossec # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog -# Should-Start: $network +# Should-Start: $network # Should-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 @@ -21,35 +21,33 @@ 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