@twinspop -- So to address your "out-of-spec" response. First off a Linux SystemD Unit file can literally be named anything, so if you wanted to name the Splunk Unit file: logranger.service You can do so. This would just mean that you need to call the service using: systemctl start/stop/restart logranger.service .
Yes the Splunk Configuration File: splunk-launch.conf uses splunkd (Or Splunkd) as the Splunk Service Name when it is running and this is just a "Best Practice" in Linux when the "Service" that is running is running as a Daemon at the System Level and as Splunk in this Case is considered a Daemon you would add the d to the End of the Process Name to identify that.
Now my posts with Commands for testing are example and may need to be updated based on your environment and situation. This will be the case almost 99% of the time as there is no way for anyone other than you to know how your Environment is configured and as such any Command Set provided is provided as an Example and again may need to be modified per situation.
Now with that being said, have you requested the Docs Team update the Document in question? From my understanding the Doc provided is providing a Sample Unit File and may need to be adjusted accordingly for your Environment.
I would also like to know if you are using cgroups inside of your Environment as that is not something that is set by default in some Environments and could be the direct reason that you experienced the issue that you have.
As I advised I have been using the Unit File that I provided in a previous post for a year without any issues and my Splunk user can Start/Stop/Restart Splunk using the following (this is in 1 of my testing environments and NOT using Linux Best Practices due to the fact that its a Test Environment):
sudo systemctl start/stop/restart splunk.service
Again Yes, I have not followed Linux "Best Practices" when I named that Specific Splunk Until File, now this is also on a System that is running 3 different Splunk Processes (SearchHead, Forwarder, Deployment Server -> All running on Same Host with Different Splunk Installations) . The Command set that I provided above is for the SearchHead Process that I have running on that Host.
I would also like to know if you are using Splunk 7.2 or if you are trying to use that Unit File for a different version of Splunk. If you are this could lead to potential issues as Splunk 7.1 and Prior was not directly coded for SystemD and as such there are potential issues that could arise by trying to use a "Pure" systemD Unit file for those Prior versions of Splunk.
I have tested the Unit file that I am using with the following versions of Splunk in my CentOS 7.4/7.5 Environments: 6.4.x, 6.5.x,. 6.6.x, 7.1.x
... View more