summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/runit-scripts
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-01-26 22:40:42 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-01-26 22:40:42 (GMT)
commit257586d195a7c79c270273b4ba85d2742c0a65c5 (patch)
treebbc90d1f8be44ec4c85e56747c4b9b9562e400f7 /abs/core-testing/runit-scripts
parent4823e05ad1b2c8adfc191f31d3fe535df1326571 (diff)
downloadlinhes_pkgbuild-257586d195a7c79c270273b4ba85d2742c0a65c5.zip
linhes_pkgbuild-257586d195a7c79c270273b4ba85d2742c0a65c5.tar.gz
linhes_pkgbuild-257586d195a7c79c270273b4ba85d2742c0a65c5.tar.bz2
cleanup of starting X
Also fix status message for X not going to tty1
Diffstat (limited to 'abs/core-testing/runit-scripts')
-rwxr-xr-xabs/core-testing/runit-scripts/PKGBUILD2
-rwxr-xr-xabs/core-testing/runit-scripts/runitscripts/services/frontend/finish36
-rwxr-xr-xabs/core-testing/runit-scripts/runitscripts/services/frontend/run4
3 files changed, 21 insertions, 21 deletions
diff --git a/abs/core-testing/runit-scripts/PKGBUILD b/abs/core-testing/runit-scripts/PKGBUILD
index 0f84074..3811e1a 100755
--- a/abs/core-testing/runit-scripts/PKGBUILD
+++ b/abs/core-testing/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=runit-scripts
pkgver=1.8.0
-pkgrel=28
+pkgrel=32
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license="BSD"
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/frontend/finish b/abs/core-testing/runit-scripts/runitscripts/services/frontend/finish
index e1e3e00..a01326c 100755
--- a/abs/core-testing/runit-scripts/runitscripts/services/frontend/finish
+++ b/abs/core-testing/runit-scripts/runitscripts/services/frontend/finish
@@ -7,24 +7,20 @@ STATUS=$?
chvt 2
else
-chvt 1
-if [ ! -d /etc/sv/frontend/.runtime ]
-then
- mkdir -p /etc/sv/frontend/.runtime
-fi
-
-touch /etc/sv/frontend/.runtime/`date +%s`
-sleep 0.2
-ps -U mythtv -ef |grep "/bin/sh /usr/bin/startx"|grep -v grep|awk ' { print $2 } '|xargs kill -9 2> /dev/null
-
-
-cdate=`date`
-numfiles=`/usr/bin/file_time_offset.py -s10 -d/etc/sv/frontend/.runtime`
-
-if [ $numfiles -gt 2 ]
-then
- sv stop frontend
- rm -f /etc/sv/frontend/.runtime/*
- echo "Frontend is not able to start, disabling it"
-fi
+ chvt 1
+ if [ ! -d /etc/sv/frontend/.runtime ]
+ then
+ mkdir -p /etc/sv/frontend/.runtime
+ fi
+ touch /etc/sv/frontend/.runtime/`date +%s`
+ sleep 0.2
+ ps -U mythtv -ef |grep "/bin/sh /usr/bin/startx"|grep -v grep|awk ' { print $2 } '|xargs kill -9 2> /dev/null
+ cdate=`date`
+ numfiles=`/usr/bin/file_time_offset.py -s10 -d/etc/sv/frontend/.runtime`
+ if [ $numfiles -gt 2 ]
+ then
+ sv stop frontend
+ rm -f /etc/sv/frontend/.runtime/*
+ echo "Frontend is not able to start, disabling it" >/dev/tty1
+ fi
fi
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/frontend/run b/abs/core-testing/runit-scripts/runitscripts/services/frontend/run
index 12a787d..72423da 100755
--- a/abs/core-testing/runit-scripts/runitscripts/services/frontend/run
+++ b/abs/core-testing/runit-scripts/runitscripts/services/frontend/run
@@ -7,4 +7,8 @@ exec 2>&1
sv down frontend
exit 0
fi
+touch /var/log/fluxbox.log
+chown mythtv:mythtv /var/log/fluxbox.log
+echo "Starting LinHES frontend" >/dev/tty1
exec /bin/su - mythtv -l -c /usr/LH/bin/LinHES-start
+