Thanks, Heiko! But, when I use that definition it starts the service and immediately terminates it.
Apr 30 16:35:46 clever-nifi systemd[1]: Starting nifi.service - Apache NiFi... Apr 30 16:35:46 clever-nifi nifi.sh[2576]: JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 Apr 30 16:35:46 clever-nifi nifi.sh[2576]: NIFI_HOME=/opt/nifi/nifi-2.3.0 Apr 30 16:35:47 clever-nifi systemd[1]: Started nifi.service - Apache NiFi. Apr 30 16:36:47 clever-nifi systemd[1]: nifi.service: Deactivated successfully. Apr 30 16:36:47 clever-nifi systemd[1]: nifi.service: Consumed 3.656s CPU time, 128.4M memory peak, 0B memory swap peak. Dave ________________________________ From: Gawehn, Heiko Sent: Wednesday, April 30, 2025 1:18 AM To: users@nifi.apache.org Subject: RE: Installation as a service on Ubuntu VM [cid:inky-injection-inliner-03755809cc10337ec572b1f12a6beedf] Caution: External (heiko.gaw...@swr.de<mailto:heiko.gaw...@swr.de>) First-Time Sender Details<https://protection.inkyphishfence.com/details?id=c2tvdXQtY2xldmVyLWRldmljZXMvZGdhbGxhZ2hlckBjbGV2ZXJkZXZpY2VzLmNvbS83NTJhY2QwYWI0MTc4ZmMxZGZiNGNkYmU4YmQ5ZWE2YS8xNzQ1OTkwMzg1LjAzMzAwNDg=#key=c65d77c6d924d35c573d6d2a9ed226b8> [cid:inky-injection-inliner-7e39dc2e793139f8cd8ed7952d9d36b1] Report This Email<https://protection.inkyphishfence.com/report?id=c2tvdXQtY2xldmVyLWRldmljZXMvZGdhbGxhZ2hlckBjbGV2ZXJkZXZpY2VzLmNvbS83NTJhY2QwYWI0MTc4ZmMxZGZiNGNkYmU4YmQ5ZWE2YS8xNzQ1OTkwMzg1LjAzMzAwNDg=#key=c65d77c6d924d35c573d6d2a9ed226b8> M365 Quarantine<https://security.microsoft.com/quarantine> Protection by Clever Devices<https://www.inky.com/protection-by-inky> Hi David, this is how it works with my Debian based installation. [Unit] Description=Apache Nifi After=network.target [Service] Type=forking ExecStart=/opt/nifi/bin/nifi.sh start [Install] WantedBy=multi-user.target Regards Heiko From: David Gallagher <dgallag...@cleverdevices.com<mailto:dgallag...@cleverdevices.com>> Sent: Wednesday, April 30, 2025 12:07 AM To: users@nifi.apache.org<mailto:users@nifi.apache.org> Subject: Installation as a service on Ubuntu VM You don't often get email from dgallag...@cleverdevices.com<mailto:dgallag...@cleverdevices.com>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hi - is there any guidance on how to create a systemd service definition for NiFi 2.x? I'm finding it very difficult to create a working one, and a lot of the advice online is apparently very out of date. Thanks, Dave