I tried running NiFi as a startup service using this:
sudo systemctl enable nifi.service
I get this error:
nifi.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nifi
update-rc.d: error: nifi Default-Start contains no runlevels, aborting.
This tutorial suggests making changes to a shell file, but I don't use such a file. Any help would be appreciated.
Best Answer
Try to create systemd file for nifi, below is example please change path/user/group accordingly.
After that you can use systemctl like below
$ sudo systemctl daemon-reload
$ sudo systemctl start nifi.service
$ sudo systemctl status nifi.service
$ sudo systemctl enable nifi.service