aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/unifi/unifi.initd
diff options
context:
space:
mode:
Diffstat (limited to 'non-free/unifi/unifi.initd')
-rw-r--r--non-free/unifi/unifi.initd5
1 files changed, 3 insertions, 2 deletions
diff --git a/non-free/unifi/unifi.initd b/non-free/unifi/unifi.initd
index bfb0d84229..802f85b7b7 100644
--- a/non-free/unifi/unifi.initd
+++ b/non-free/unifi/unifi.initd
@@ -1,9 +1,10 @@
#!/sbin/openrc-run
+name="Unifi Controller"
supervisor=supervise-daemon
command=/usr/bin/java
-command_args="-jar lib/ace.jar start"
-command_user="unifi"
+command_args="-jar lib/ace.jar start ${OPTS}"
+: ${command_user="unifi"}
pidfile=/run/unifi/${RC_SVCNAME}.pid
command_background=yes
supervise_daemon_args="--chdir /usr/lib/unifi \