summarylogtreecommitdiffstats
path: root/splunkforwarder.service
diff options
context:
space:
mode:
authorL. Bradley LaBoon2024-02-06 19:52:16 -0500
committerL. Bradley LaBoon2024-02-06 19:52:16 -0500
commit4ba8d8412bd7f39885278157b1375a59b1961a27 (patch)
tree7babaa528ad3600786a239e4cb8517b03e4e82aa /splunkforwarder.service
parent3137703c7d8b1ed8bed376babf70bdbf0c2a2ac1 (diff)
downloadaur-4ba8d8412bd7f39885278157b1375a59b1961a27.tar.gz
Updated to 9.2.0
Diffstat (limited to 'splunkforwarder.service')
-rw-r--r--splunkforwarder.service26
1 files changed, 16 insertions, 10 deletions
diff --git a/splunkforwarder.service b/splunkforwarder.service
index 47ecf4f846f0..05b086a5059c 100644
--- a/splunkforwarder.service
+++ b/splunkforwarder.service
@@ -1,17 +1,23 @@
[Unit]
-Description=Splunk Forwarder
-Wants=network.target
-After=network.target
+Description=Splunk Universal Forwarder
+After=network-online.target
+Wants=network-online.target
[Service]
-Type=forking
-RemainAfterExit=yes
+Type=simple
+Restart=always
+ExecStart=/opt/splunkforwarder/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/splunkforwarder/bin/splunk start --answer-yes --no-prompt --accept-license
-ExecStop=/opt/splunkforwarder/bin/splunk stop
-ExecReload=/opt/splunkforwarder/bin/splunk restart
-StandardOutput=syslog
-TimeoutSec=500
+Group=splunk
+NoNewPrivileges=yes
[Install]
WantedBy=multi-user.target