summarylogtreecommitdiffstats
path: root/splunkforwarder.service
diff options
context:
space:
mode:
Diffstat (limited to 'splunkforwarder.service')
-rw-r--r--splunkforwarder.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/splunkforwarder.service b/splunkforwarder.service
new file mode 100644
index 000000000000..41d43b6f75f3
--- /dev/null
+++ b/splunkforwarder.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Splunk Forwarder
+Wants=network.target
+After=network.target
+
+[Service]
+Type=forking
+RemainAfterExit=yes
+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
+
+[Install]
+WantedBy=multi-user.target