blob: 55d6e805453d7504a1416ec130a23c3497c6c03a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PID_FILE="/run/unifi-video.pid"
start() {
ebegin "Starting unifi-video"
start-stop-daemon --start --quiet -b \
--pidfile "${PID_FILE}" -m \
--exec /usr/sbin/unifi-video start
eend $?
#--user nobody --group nobody \
}
stop() {
ebegin "Stopping unifi-video"
start-stop-daemon --quiet --stop -R 20 --pidfile "${PID_FILE}"
eend $?
}
|