packages: mythtv/mythbackend.init ythbackend can do --user itself now
glen
glen at pld-linux.org
Sat Jan 22 22:05:41 CET 2011
Author: glen Date: Sat Jan 22 21:05:41 2011 GMT
Module: packages Tag: HEAD
---- Log message:
ythbackend can do --user itself now
---- Files affected:
packages/mythtv:
mythbackend.init (1.5 -> 1.6)
---- Diffs:
================================================================
Index: packages/mythtv/mythbackend.init
diff -u packages/mythtv/mythbackend.init:1.5 packages/mythtv/mythbackend.init:1.6
--- packages/mythtv/mythbackend.init:1.5 Mon Oct 2 21:54:19 2006
+++ packages/mythtv/mythbackend.init Sat Jan 22 22:05:36 2011
@@ -17,16 +17,17 @@
. /etc/sysconfig/mythbackend
fi
-## Defaults, override them in /etc/sysconfig/mythbackend
-: ${MYTHTV_HOME=/var/lib/mythtv}
-
-OPTIONS="$OPTIONS --daemon --logfile /var/log/mythtv/mythbackend.log --pidfile /var/run/mythtv/mythbackend.pid"
+pidfile=/var/run/mythtv/mythbackend.pid
start() {
# Start daemons.
if [ ! -f /var/lock/subsys/mythbackend ]; then
msg_starting "Mythbackend"
- daemon --user mythtv "cd $MYTHTV_HOME && /usr/sbin/mythbackend $OPTIONS"
+ daemon /usr/sbin/mythbackend --daemon \
+ --user mythtv \
+ --logfile /var/log/mythtv/mythbackend.log \
+ --pidfile $pidfile \
+ $OPTIONS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/mythbackend
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mythtv/mythbackend.init?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list