summarylogtreecommitdiffstats
path: root/splunk.service
diff options
context:
space:
mode:
Diffstat (limited to 'splunk.service')
-rw-r--r--splunk.service24
1 files changed, 15 insertions, 9 deletions
diff --git a/splunk.service b/splunk.service
index 1fc48936624e..1f5b10500866 100644
--- a/splunk.service
+++ b/splunk.service
@@ -1,16 +1,22 @@
[Unit]
-Description=Splunk
-Wants=network.target
-After=network.target
+Description=Splunk Enterprise
+After=network-online.target
+Wants=network-online.target
[Service]
-Type=forking
-RemainAfterExit=yes
+Type=simple
+Restart=always
+ExecStart=/opt/splunk/bin/splunk _internal_launch_under_systemd --answer-yes --no-prompt --accept-license
+KillMode=mixed
+KillSignal=SIGINT
+TimeoutStopSec=360
+LimitNOFILE=65536
+LimitRTPRIO=99
+SuccessExitStatus=51 52
+RestartPreventExitStatus=51
+RestartForceExitStatus=52
User=splunk
-ExecStart=/opt/splunk/bin/splunk start --answer-yes --no-prompt --accept-license
-ExecStop=/opt/splunk/bin/splunk stop
-ExecReload=/opt/splunk/bin/splunk restart
-StandardOutput=syslog
+Group=splunk
[Install]
WantedBy=multi-user.target