X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Finit%2Fossec-hids.init;h=9c63ab83b42cee5ad2bdd76eb4a7f653616cc0c8;hp=f1543d4866daf2b25ba93568ddf60d27d1df4b36;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b diff --git a/src/init/ossec-hids.init b/src/init/ossec-hids.init index f1543d4..9c63ab8 100755 --- a/src/init/ossec-hids.init +++ b/src/init/ossec-hids.init @@ -1,45 +1,42 @@ #!/bin/sh -# OSSEC Controls OSSEC HIDS +# OSSEC Controls OSSEC HIDS # Author: Daniel B. Cid # Modified for slackware by Jack S. Lai - . /etc/ossec-init.conf 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 exit 0