Hi folks..
just did a clean 6.1.1 install.. is it just me? or is "splunk enable boot-start -user " broken?
it used to create a startup script in /etc/init.d/splunk with "/bin/su - " everywhere in the script.. but this time the "su -" parts are all missing and caused me some grief with splunkd not starting...
ie... 6.1.1... /etc/init.d/splunk
splunk_start() {
echo Starting Splunk...
"/app/splunk/bin/splunk" start --no-prompt --answer-yes
RETVAL=$?
}
splunk_stop() {
echo Stopping Splunk...
"/app/splunk/bin/splunk" stop
RETVAL=$?
}
splunk_restart() {
echo Restarting Splunk...
"/app/splunk/bin/splunk" restart
RETVAL=$?
}
version 6.0... /etc/init.d/splunk (where user specified is 'splunk'
splunk_start() {
echo Starting Splunk...
/bin/su - splunk -c "\"/app/splunk/bin/splunk\" start --no-prompt --answer-yes"
RETVAL=$?
}
splunk_stop() {
echo Stopping Splunk...
/bin/su - splunk -c "\"/app/splunk/bin/splunk\" stop "
RETVAL=$?
}
splunk_restart() {
echo Restarting Splunk...
/bin/su - splunk -c "\"/app/splunk/bin/splunk\" restart "
RETVAL=$?
}
... View more