diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-26 22:40:42 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-26 22:40:42 (GMT) |
commit | 257586d195a7c79c270273b4ba85d2742c0a65c5 (patch) | |
tree | bbc90d1f8be44ec4c85e56747c4b9b9562e400f7 /abs/core-testing | |
parent | 4823e05ad1b2c8adfc191f31d3fe535df1326571 (diff) | |
download | linhes_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')
5 files changed, 23 insertions, 23 deletions
diff --git a/abs/core-testing/LinHES-system/LinHES-session b/abs/core-testing/LinHES-system/LinHES-session index 05fc6d1..52924d2 100755 --- a/abs/core-testing/LinHES-system/LinHES-session +++ b/abs/core-testing/LinHES-system/LinHES-session @@ -7,7 +7,7 @@ xhost +127.0.0.1 xset -dpms s off export MALLOC_CHECK_=0 #start fluxbox -fluxbox +fluxbox > /var/log/fluxbox.log 2>&1 diff --git a/abs/core-testing/LinHES-system/PKGBUILD b/abs/core-testing/LinHES-system/PKGBUILD index 90550e6..8989f9b 100644 --- a/abs/core-testing/LinHES-system/PKGBUILD +++ b/abs/core-testing/LinHES-system/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-system pkgver=1.0 -pkgrel=19 +pkgrel=20 arch=('i686') MVDIR=$startdir/pkg/usr/LH BINDIR=$startdir/pkg/usr/bin 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 + |