summarylogtreecommitdiffstats
path: root/splunk.service
diff options
context:
space:
mode:
authorL. Bradley LaBoon2015-12-07 12:01:38 -0500
committerL. Bradley LaBoon2015-12-07 12:01:38 -0500
commitb166ffbfd1430c2dc899de646b3c0949c48305ac (patch)
tree475254a8e14f02562c3e45a8a0d50ddc5c0949cc /splunk.service
downloadaur-b166ffbfd1430c2dc899de646b3c0949c48305ac.tar.gz
Version 6.3.1
Diffstat (limited to 'splunk.service')
-rw-r--r--splunk.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/splunk.service b/splunk.service
new file mode 100644
index 000000000000..1fc48936624e
--- /dev/null
+++ b/splunk.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Splunk
+Wants=network.target
+After=network.target
+
+[Service]
+Type=forking
+RemainAfterExit=yes
+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
+
+[Install]
+WantedBy=multi-user.target