xoxys.unifi/templates/etc/systemd/system/unifi.service.j2
2018-07-08 23:02:55 +02:00

19 lines
472 B
Django/Jinja

## {{ ansible_managed }}
# Systemd unit file for UniFi Controller
[Unit]
Description=UniFi Controller
Wants=mongod.service
After=syslog.target network.target
[Service]
ExecStart=/usr/bin/java -Xmx1024M -jar {{ unifi_base_dir }}/latest/UniFi/lib/ace.jar start
ExecStop=/usr/bin/java -jar {{ unifi_base_dir }}/latest/UniFi/lib/ace.jar stop
Type=simple
User={{ unifi_user }}
WorkingDirectory={{ unifi_base_dir }}
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target