Added init script for splunk

This commit is contained in:
2011-06-18 10:33:01 +01:00
parent c000146119
commit 9b3004a078
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/sbin/runscript
depend() {
after logger
}
start() {
ebegin "Starting Splunk"
/opt/splunk/bin/splunk start
eend $?
}
stop() {
ebegin "Stopping Splunk"
/opt/splunk/bin/splunk stop
eend $?
}
status() {
/opt/splunk/bin/splunk status
eend $?
}