summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-05-01 20:26:50 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-05-01 20:26:50 (GMT)
commit622c2b05e6dc5f7a3d63cfe6bd51daae0e377b82 (patch)
tree6100d88625bc92df4977c728608b639223821151 /abs/core/runit-scripts/runitscripts/services
parent78939c5c83b0884c92f69ee542308b72ddc2c4ee (diff)
downloadlinhes_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
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/mythbackend/run7
1 files changed, 6 insertions, 1 deletions
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