unofficial-unifi / unifi-pfsense

A script that installs the UniFi Controller software on pfSense and other FreeBSD systems
BSD 2-Clause "Simplified" License
755 stars 245 forks source link

Update RC.d unifi.sh for firmware 7.5 and up Opnsense 23 #330

Closed tong2x closed 1 year ago

tong2x commented 1 year ago

fix beta UniFi Network Application 7.5.187 Opnsense firmware Is the following code changes safe to integrate in main branch? fixes issues with Opnsense and Unifi Network Controller Application 7.5 and up

Firmware Overview/Details

saw some posted this fix for the log errors in the main Unifi forums page... by User "doestergaard" view post

/usr/local/etc/rc.d/unifi.sh
Try appending --add-opens=java.base/java.time=ALL-UNNAMED to your execstart:
ExecStart=/usr/bin/java --add-opens=java.base/java.time=ALL-UNNAMED -jar /opt/UniFi/lib/ace.jar 

using winscp I modified

    # So we start it in the background and stash the pid:
    /usr/local/bin/java -jar /usr/local/UniFi/lib/ace.jar start &

to

    # So we start it in the background and stash the pid:
    /usr/local/bin/java --add-opens=java.base/java.time=ALL-UNNAMED -jar /usr/local/UniFi/lib/ace.jar start &
TheDave94 commented 1 year ago

Works great for me on opnsense 23, even with the new 8.0.2