diff options
Diffstat (limited to 'media-video/unifi-video/files/unifi-video.initd')
-rw-r--r-- | media-video/unifi-video/files/unifi-video.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/media-video/unifi-video/files/unifi-video.initd b/media-video/unifi-video/files/unifi-video.initd new file mode 100644 index 000000000000..55d6e805453d --- /dev/null +++ b/media-video/unifi-video/files/unifi-video.initd @@ -0,0 +1,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 $? +} |