Skip to content

Instantly share code, notes, and snippets.

@AfroThundr3007730
Created October 25, 2018 13:46
Show Gist options
  • Save AfroThundr3007730/5039503adac5db7d1b1f498fe95947c1 to your computer and use it in GitHub Desktop.
Save AfroThundr3007730/5039503adac5db7d1b1f498fe95947c1 to your computer and use it in GitHub Desktop.
Splunk systemd unit file, built from https://answers.splunk.com/answers/59662
[Unit]
Description=Splunk Enterprise
After=network.target
Wants=network.target
[Service]
Type=forking
RemainAfterExit=no
Restart=on-failure
RestartSec=30s
User=splunk
Group=splunk
LimitNOFILE=65536
ExecStart=/opt/splunk/bin/splunk start
ExecStop=/opt/splunk/bin/splunk stop
ExecReload=/opt/splunk/bin/splunk restart
PIDFile=/opt/splunk/var/run/splunk/splunkd.pid
[Install]
WantedBy=multi-user.target
Alias=splunk.service
@AfroThundr3007730
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment