smeserver-unifi/root/usr/lib/systemd/system/unifi.service

23 lines
603 B
SYSTEMD
Raw Normal View History

# 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