summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2018-06-25 19:02:29 -0500
committerBen Kohler <bkohler@gentoo.org>2018-06-25 19:03:16 -0500
commit6d09f5cde33491d5505b27b088bce0306b1c1040 (patch)
treeb8ec6574ac7392a00d56bf02f075fb5903f1b700 /net-wireless/unifi/files/unifi.service
parentapp-backup/spideroak-bin: Downgrade to 7.2.0 (diff)
downloadgentoo-6d09f5cde33491d5505b27b088bce0306b1c1040.tar.gz
gentoo-6d09f5cde33491d5505b27b088bce0306b1c1040.tar.bz2
gentoo-6d09f5cde33491d5505b27b088bce0306b1c1040.zip
net-wireless/unifi: new package
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-wireless/unifi/files/unifi.service')
-rw-r--r--net-wireless/unifi/files/unifi.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-wireless/unifi/files/unifi.service b/net-wireless/unifi/files/unifi.service
new file mode 100644
index 000000000000..11385a0e913b
--- /dev/null
+++ b/net-wireless/unifi/files/unifi.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=UniFi Controller
+Requires=network.target
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/java -jar /usr/lib/unifi/lib/ace.jar start
+ExecStop=/usr/bin/java -jar /usr/lib/unifi/lib/ace.jar stop
+User=unifi
+Group=unifi
+WorkingDirectory=/usr/lib/unifi
+
+[Install]
+WantedBy=network.target