Deployment Architecture

Splunk service on search heads going inactive after rolling restart

agentsofshield
Path Finder

I made a splunk.service file inside /etc/systemd/system so I could manage splunk like a service.
Here is what i wrote inside it:
`[Unit]
Description=Splunk

[Service]
Type=forking
ExecStart=/opt/splunk/bin/splunk start
ExecStop=/opt/splunk/bin/splunk stop
Restart=on-failure`

After I made the service, every time I did a rolling restart on the search heads the service became inactive in all of them.
Is the Restart=on-failure interfering with the restart? what can I do to fix it?

Thanks.

1 Solution

agentsofshield
Path Finder

The problem was indeed with Restart=on-failure it should be Restart=always and then it works like a charm!

View solution in original post

0 Karma

agentsofshield
Path Finder

The problem was indeed with Restart=on-failure it should be Restart=always and then it works like a charm!

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...