summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/evrouter/run3
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/frontend/run4
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/finish2
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/run4
4 files changed, 7 insertions, 6 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/evrouter/run b/abs/core/runit-scripts/runitscripts/services/evrouter/run
index 7d9e1d2..82d0268 100755
--- a/abs/core/runit-scripts/runitscripts/services/evrouter/run
+++ b/abs/core/runit-scripts/runitscripts/services/evrouter/run
@@ -16,6 +16,7 @@ then
sv start Xvfb
fi
- su mythtv -c "DISPLAY=localhost:50 evrouter -c /etc/evrouter.cfg -f /dev/input/event*"
+ #su mythtv -c "DISPLAY=localhost:50 evrouter -c /etc/evrouter.cfg -f /dev/input/event*"
+ exec sudo -u mythtv -i DISPLAY=localhost:50 evrouter -c /etc/evrouter.cfg -f /dev/input/event*
fi
diff --git a/abs/core/runit-scripts/runitscripts/services/frontend/run b/abs/core/runit-scripts/runitscripts/services/frontend/run
index 3711058..22b65db 100755
--- a/abs/core/runit-scripts/runitscripts/services/frontend/run
+++ b/abs/core/runit-scripts/runitscripts/services/frontend/run
@@ -21,5 +21,5 @@ stat_runit "Starting LinHES frontend"
# fi
#echo "Starting LinHES frontend" >/dev/tty1
-exec /bin/su - mythtv -l -c /usr/LH/bin/LinHES-start
-
+#exec /bin/su - mythtv -l -c /usr/LH/bin/LinHES-start
+exec sudo -u mythtv -i /usr/LH/bin/LinHES-start
diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/finish b/abs/core/runit-scripts/runitscripts/services/vnc/finish
index 605a0c4..c026673 100755
--- a/abs/core/runit-scripts/runitscripts/services/vnc/finish
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/finish
@@ -6,7 +6,7 @@ export TERM=linux
. /etc/rc.d/functions
stat_runit "Stopping vnc service"
rm -f /etc/avahi/services/vnc.service 2>/dev/null
-su vncsvc -c "vncserver -kill :1"
+sudo -u vncsvc vncserver -kill :1
XFILE="/tmp/.X11-unix/X1"
if [ -e $XFILE ]
then
diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/run b/abs/core/runit-scripts/runitscripts/services/vnc/run
index 1c01371..bc411b1 100755
--- a/abs/core/runit-scripts/runitscripts/services/vnc/run
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/run
@@ -11,5 +11,5 @@ geometry=1024x768
#. /etc/conf.d/vncserver 2>/dev/null
cp -f $MV_ROOT/templates/vnc.service /etc/avahi/services/vnc.service 2>/dev/null
cd ~vncsvc
-exec su vncsvc -c "/usr/bin/vncserver -fg -geometry $geometry :1" 2>/var/log/vnc.log
-
+#exec su vncsvc -c "/usr/bin/vncserver -fg -geometry $geometry :1" 2>/var/log/vnc.log
+exec sudo -u vncsvc -i /usr/bin/vncserver -fg -geometry $geometry :1 2>/var/log/vnc.log