Since this package uses JDK 11, we can explicitly use JDK 11 like this:
[Unit]
Description=Ubiquiti UniFi Server
After=network.target
[Service]
User=unifi
WorkingDirectory=/usr/lib/unifi
ExecStart=/usr/lib/jvm/java-11-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar start
ExecStop=/usr/lib/jvm/java-11-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar stop
[Install]
WantedBy=multi-user.target
Pinned Comments
freswa commented on 2019-10-30 11:50 (UTC)
We are on Stable with this Package. Please flag out-of-date only if the Version provided with this package does not match the version under "Stable" in this link: https://help.ubnt.com/hc/en-us/articles/360008240754#1