initial commit of file from CVS for smeserver-unifi on Sat Sep 7 21:10:32 AEST 2024
This commit is contained in:
22
root/usr/lib/systemd/system/unifi.service
Normal file
22
root/usr/lib/systemd/system/unifi.service
Normal file
@@ -0,0 +1,22 @@
|
||||
# UniFi Controller systemd Service File
|
||||
# by Steve Jenkins
|
||||
# Last updated January 8, 2017
|
||||
# adapted for Koozali SME Server 10
|
||||
[Unit]
|
||||
Description=Ubiquiti UniFi Controller
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
ExecStartPre=-/usr/sbin/e-smith/service-status unifi
|
||||
ExecStartPre=/usr//sbin/e-smith/systemd/unifi
|
||||
ExecStart=/usr/bin/java -Xmx1024M -jar /opt/UniFi/lib/ace.jar start
|
||||
ExecStop=/usr/bin/java -jar /opt/UniFi/lib/ace.jar stop
|
||||
Type=simple
|
||||
User=ubnt
|
||||
PermissionsStartOnly=true
|
||||
WorkingDirectory=/opt/UniFi
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=sme-server.target
|
Reference in New Issue
Block a user