summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/runit-scripts/runitscripts/services/frontend/run
blob: c1e2f2db1157dffc2f6dcc0b3a622a85dc67ea4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions

exec 2>&1
 grep -qi  nox /proc/cmdline
 STATUS=$?
  if  [ $STATUS = 0 ]
   then
    sv down frontend
    exit 0
  fi
touch /var/log/fluxbox.log
chown mythtv:mythtv /var/log/fluxbox.log

stat_runit "Starting LinHES frontend"

#echo "Starting LinHES frontend" >/dev/tty1
exec /bin/su - mythtv -l -c /usr/LH/bin/LinHES-start