When stopping a forwarder I see the following -
bash-3.2$ ./splunk stop
splunkd is not running.
bash-3.2$ ./splunk status
splunkd 7085 was not running.
Stopping splunk helpers...
Done.
Stopped helpers.
Removing stale pid file... done.
bash-3.2$ ./splunk status
splunkd is not running.
So, do I really need to run the ./splunk status
when stopping a forwarder?
If your job is just to stop the forwarder then you really do not need to write ./splunk status. Instead just type ./splunk stop
In other words, you do not really need to run the ./splunk status when stopping a forwarder
But you see, by running ./splunk status
two things took place -
Stopped helpers.
Removing stale pid file... done.
One would think that these two actions actually belong to the invocation of ./splunk stop
. Why are they done via ./splunk status
?