diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-12-05 23:37:56 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-12-05 23:39:27 +0000 |
commit | e29a96d23c931d911574bc297c7752214859303c (patch) | |
tree | 044398a2c892ffc1b00237cf752d754e096bbc78 /non-free/unifi/unifi.initd | |
parent | 1b6cb62539ac826131cbbb015b5fa2833db42fbe (diff) | |
download | aports-e29a96d23c931d911574bc297c7752214859303c.tar.bz2 aports-e29a96d23c931d911574bc297c7752214859303c.tar.xz |
non-free/unifi: new aport
ref: https://github.com/alpinelinux/aports/pull/2530
Diffstat (limited to 'non-free/unifi/unifi.initd')
-rw-r--r-- | non-free/unifi/unifi.initd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/non-free/unifi/unifi.initd b/non-free/unifi/unifi.initd new file mode 100644 index 0000000000..bfb0d84229 --- /dev/null +++ b/non-free/unifi/unifi.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon +command=/usr/bin/java +command_args="-jar lib/ace.jar start" +command_user="unifi" +pidfile=/run/unifi/${RC_SVCNAME}.pid +command_background=yes +supervise_daemon_args="--chdir /usr/lib/unifi \ + --stdout /var/log/unifi/${RC_SVCNAME}.log \ + --stderr /var/log/unifi/${RC_SVCNAME}.log" + +start_pre() { + checkpath --directory --owner $command_user --mode 0775 \ + /run/unifi /var/log/unifi +} |