projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git]
/
src
/
init
/
ossec-hids.init
diff --git
a/src/init/ossec-hids.init
b/src/init/ossec-hids.init
index
f1543d4
..
9c63ab8
100755
(executable)
--- a/
src/init/ossec-hids.init
+++ b/
src/init/ossec-hids.init
@@
-1,45
+1,42
@@
#!/bin/sh
#!/bin/sh
-# OSSEC Controls OSSEC HIDS
+# OSSEC Controls OSSEC HIDS
# Author: Daniel B. Cid <dcid@ossec.net>
# Modified for slackware by Jack S. Lai
# Author: Daniel B. Cid <dcid@ossec.net>
# Modified for slackware by Jack S. Lai
-
. /etc/ossec-init.conf
if [ "X${DIRECTORY}" = "X" ]; then
DIRECTORY="/var/ossec"
fi
. /etc/ossec-init.conf
if [ "X${DIRECTORY}" = "X" ]; then
DIRECTORY="/var/ossec"
fi
-
start() {
start() {
- ${DIRECTORY}/bin/ossec-control start
+ ${DIRECTORY}/bin/ossec-control start
}
stop() {
}
stop() {
- ${DIRECTORY}/bin/ossec-control stop
+ ${DIRECTORY}/bin/ossec-control stop
}
status() {
}
status() {
- ${DIRECTORY}/bin/ossec-control status
+ ${DIRECTORY}/bin/ossec-control status
}
}
-
case "$1" in
case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- status)
+start)
+ start
+ ;;
+stop)
+ stop
+ ;;
+restart)
+ stop
+ start
+ ;;
+status)
status
status
- ;;
- *)
- echo "*** Usage: $0 {start|stop|restart|status}"
- exit 1
+ ;;
+*)
+ echo "*** Usage: $0 {start|stop|restart|status}"
+ exit 1
esac
exit 0
esac
exit 0