Created
October 25, 2018 13:46
-
-
Save AfroThundr3007730/5039503adac5db7d1b1f498fe95947c1 to your computer and use it in GitHub Desktop.
Splunk systemd unit file, built from https://answers.splunk.com/answers/59662
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Might also want to check out http://docs.splunk.com/Documentation/Splunk/7.2.0/Workloads/Configuresystemd