aboutsummaryrefslogblamecommitdiffstats
path: root/non-free/unifi/unifi.initd
blob: b1269de74ac0891cb07bbfc794cdc351fd5aa0df (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                  
                       
                     

                                             

                                    

                                                






                                                                 
#!/sbin/openrc-run

name="Unifi Controller"
command=/usr/bin/java
command_args="-jar lib/ace.jar start ${OPTS}"
: ${command_user="unifi"}
pidfile=/run/unifi/${RC_SVCNAME}.pid
command_background=yes
retry=30
start_stop_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
}