summaryrefslogtreecommitdiff
path: root/net-wireless/unifi/files/unifi-mongodb.initd
blob: fb55027eb149be4f27c95bb85ae3ba853937f61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/sbin/openrc-run
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

unifi_exec="/usr/bin/unifi"
unifi_path="/usr/lib/unifi"

unifi_user="unifi"
unifi_group="unifi"

name="UniFi Controller"

start_stop_daemon_args="--chdir ${unifi_path}"

command="${unifi_exec}"
command_args="start"
command_background=true
command_progress=true
command_user="${unifi_user}:${unifi_group}"

pidfile="/run/${RC_SVCNAME}.pid"
retry=TERM/60

rc_after="mongodb"
rc_need="mongodb"