diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-06-30 08:49:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-06-30 08:49:38 +0100 |
commit | b2be182d49eea46686b5cf2680d457df61e89dc4 (patch) | |
tree | c66442ced2011c5ca81c3114cc51041e314c6d33 /media-video/unifi-video/files/unifi-video.initd | |
parent | e23cdda4dbb0c83b9e682ab5e916085a35203da5 (diff) |
gentoo resync : 30.06.2018
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 $? +} |