diff options
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/services/frontend')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/frontend/finish | 36 | ||||
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/frontend/run | 4 |
2 files changed, 20 insertions, 20 deletions
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 + |