summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorMichael Hanson <mihanson@linhes.org>2012-01-26 03:57:44 (GMT)
committerMichael Hanson <mihanson@linhes.org>2012-01-26 03:57:44 (GMT)
commit350280e0025adcbc593921a1062a1da79a475945 (patch)
treea371dee21c8daaa40048fb474057b035f3c9c9a8 /abs/core/runit-scripts/runitscripts
parentc819ad0cec379c8829082eaca3d423d3db76580d (diff)
downloadlinhes_pkgbuild-350280e0025adcbc593921a1062a1da79a475945.zip
linhes_pkgbuild-350280e0025adcbc593921a1062a1da79a475945.tar.gz
linhes_pkgbuild-350280e0025adcbc593921a1062a1da79a475945.tar.bz2
runit-scripts: change mythdroid
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/mythdroid/run13
1 files changed, 3 insertions, 10 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/mythdroid/run b/abs/core/runit-scripts/runitscripts/services/mythdroid/run
index fa2cb48..08dda10 100755
--- a/abs/core/runit-scripts/runitscripts/services/mythdroid/run
+++ b/abs/core/runit-scripts/runitscripts/services/mythdroid/run
@@ -2,15 +2,8 @@
. /etc/rc.conf
. /etc/rc.d/functions
+[ -f /etc/mdd.conf ] && . /etc/mdd.conf
-[ -f /etc/conf.d/mdd.conf ] && . /etc/conf.d/mdd.conf
+ stat_runit "Starting MythExport daemon"
- stat_runit "Starting MythDroid daemon"
-
- /sbin/chpst -u mythtv /usr/bin/vendor_perl/mdd.pl
- PID=$(pidof -o %PPID -x /usr/bin/vendor_perl/mdd.pl)
-
-# Wait until daemon dies, else runit can't supervise us
- while [ "`pidof -o %PPID -x /usr/bin/vendor_perl/mdd.pl`" == "$PID" ]; do
- sleep 2
- done
+ exec /usr/bin/vendor_perl/mdd.pl 2>&1 /dev/null