diff options
author | Michael Hanson <mihanson@linhes.org> | 2012-01-26 03:57:44 (GMT) |
---|---|---|
committer | Michael Hanson <mihanson@linhes.org> | 2012-01-26 03:57:44 (GMT) |
commit | 350280e0025adcbc593921a1062a1da79a475945 (patch) | |
tree | a371dee21c8daaa40048fb474057b035f3c9c9a8 | |
parent | c819ad0cec379c8829082eaca3d423d3db76580d (diff) | |
download | linhes_pkgbuild-350280e0025adcbc593921a1062a1da79a475945.zip linhes_pkgbuild-350280e0025adcbc593921a1062a1da79a475945.tar.gz linhes_pkgbuild-350280e0025adcbc593921a1062a1da79a475945.tar.bz2 |
runit-scripts: change mythdroid
-rwxr-xr-x | abs/core/runit-scripts/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/mythdroid/run | 13 |
2 files changed, 4 insertions, 11 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index b58966d..3ce0ad7 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=2.1.1 -pkgrel=50 +pkgrel=51 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" 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 |