forked from chef-boneyard/cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ossec doesnt have rc script for arch but now we do :)
- Loading branch information
jtimberman
committed
Dec 29, 2010
1 parent
8b2921e
commit 00ec9ee
Showing
4 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
# OSSEC Controls OSSEC HIDS | ||
# Author: Daniel B. Cid <dcid@ossec.net> | ||
# Modified for ArchLinux by Joshua Timberman <joshua@opscode.com> | ||
|
||
. /etc/ossec-init.conf | ||
if [ "X${DIRECTORY}" = "X" ]; then | ||
DIRECTORY="<%= node['ossec']['user']['dir'] %>" | ||
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 | ||
;; | ||
status) | ||
status | ||
;; | ||
*) | ||
echo "usage: $0 {start|stop|restart|status}" | ||
exit 1 | ||
esac |