Skip to content

Instantly share code, notes, and snippets.

@ddewaele
Created January 29, 2017 19:09
Show Gist options
  • Save ddewaele/54f67b0e9afaa538c31723cd2f609e14 to your computer and use it in GitHub Desktop.
Save ddewaele/54f67b0e9afaa538c31723cd2f609e14 to your computer and use it in GitHub Desktop.
Nifi systemd service defintiion
[centos@ip-172-30-0-249 system]$ cat /etc/systemd/system/nifi.service
[Unit]
Description=Apache NiFi
After=network.target
[Service]
Type=forking
User=nifi
Group=nifi
ExecStart=/opt/nifi-latest/bin/nifi.sh start
ExecStop=/opt/nifi-latest/bin/nifi.sh stop
ExecRestart=/opt/nifi-latest/bin/nifi.sh restart
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment