[SCM] crtmpserver/master: Add rc script

jet-guest at users.alioth.debian.org jet-guest at users.alioth.debian.org
Tue Nov 1 22:36:47 UTC 2011


The following commit has been merged in the master branch:
commit c06ba11fbb9741c8de6253a64e04e9d978b8346a
Author: Andriy Beregovenko <jet at jet.kiev.ua>
Date:   Wed Nov 2 00:29:11 2011 +0200

    Add rc script

diff --git a/debian/examples/crtmpserver.init b/debian/crtmpserver.init
similarity index 92%
copy from debian/examples/crtmpserver.init
copy to debian/crtmpserver.init
index 7d86bfe..935f067 100644
--- a/debian/examples/crtmpserver.init
+++ b/debian/crtmpserver.init
@@ -29,8 +29,10 @@ ENABLED=no
 . /lib/init/vars.sh
 . /lib/lsb/init-functions
 
-UID=$(getent passwd ${DAEMON_USER} | cut -d":" -f3)
-UID_ARG=" --uid=$UID "
+DAEMON_UID=$(getent passwd ${DAEMON_USER} | cut -d":" -f3)
+[ -z "${DAEMON_UID}" ] && (echo "User ${DAEMON_USER} not exists"; return 1)
+
+UID_ARG=" --uid=${DAEMON_UID} "
 
 do_start()
 {

-- 
crtmpserver packaging



More information about the pkg-multimedia-commits mailing list