xoxys.unifi/templates/etc/systemd/system/unifi.service.j2

17 lines
485 B
Plaintext
Raw Normal View History

2019-08-28 09:09:46 +00:00
{{ ansible_managed | comment }}
2018-07-08 21:02:55 +00:00
[Unit]
Description=UniFi Controller
Wants=mongod.service
After=syslog.target network.target
[Service]
2018-07-10 21:11:32 +00:00
ExecStart=/usr/bin/java -Xmx1024M -Dorg.xerial.snappy.tempdir={{ unifi_tmp_dir }} -jar {{ unifi_base_dir }}/latest/UniFi/lib/ace.jar start
2018-07-08 21:02:55 +00:00
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