Splunk systemd unit-file for debian Jessie

This one works with Debian Jessie.
Please note that after the first install, or after upgrades you have to start it manually to accept the license.

# editor /lib/systemd/system/splunk.service

[Unit]
Description=Splunk
Wants=network.target
After=network.target

[Service]
Type=forking
RemainAfterExit=yes
ExecStart=/opt/splunk/bin/splunk start
ExecStop=/opt/splunk/bin/splunk stop
ExecReload=/opt/splunk/bin/splunk restart
StandardOutput=syslog

[Install]
WantedBy=multi-user.target

# systemctl enable splunk.service

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s