diff options
author | Britney Fransen <brfransen@gmail.com> | 2012-05-01 20:26:50 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2012-05-01 20:26:50 (GMT) |
commit | 622c2b05e6dc5f7a3d63cfe6bd51daae0e377b82 (patch) | |
tree | 6100d88625bc92df4977c728608b639223821151 | |
parent | 78939c5c83b0884c92f69ee542308b72ddc2c4ee (diff) | |
download | linhes_pkgbuild-622c2b05e6dc5f7a3d63cfe6bd51daae0e377b82.zip linhes_pkgbuild-622c2b05e6dc5f7a3d63cfe6bd51daae0e377b82.tar.gz linhes_pkgbuild-622c2b05e6dc5f7a3d63cfe6bd51daae0e377b82.tar.bz2 |
runit-scripts: mythbackend:run: check mythtv version installed to start mythbackend correctly
-rwxr-xr-x | abs/core/runit-scripts/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/mythbackend/run | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index fd205aa..9357169 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=61 +pkgrel=62 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run index 4ff0e9f..273f655 100755 --- a/abs/core/runit-scripts/runitscripts/services/mythbackend/run +++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run @@ -40,5 +40,10 @@ fi # sleep 10 # # else - exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6" + if pacman -Q mythtv | grep -q 0.24 + then + exec su mythtv -c "/usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log" + else + exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6" + fi # fi |