xoxys.unifi/templates/etc/systemd/system/unifi.service.j2
Robert Kaussow 41b5f8d19a
All checks were successful
continuous-integration/drone/push Build is passing
fix ansible_managed handling
2019-08-28 11:09:46 +02:00

17 lines
485 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=UniFi Controller
Wants=mongod.service
After=syslog.target network.target
[Service]
ExecStart=/usr/bin/java -Xmx1024M -Dorg.xerial.snappy.tempdir={{ unifi_tmp_dir }} -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