From f334e5d80b50663dc514f1a1c2596d5168bb9f33 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 30 Sep 2015 14:11:30 +0000
Subject: runit-scripts: change frontend and vnc to start usingg su

runit can't term processes run with sudo and the -i option
---
 abs/core/runit-scripts/PKGBUILD                           | 2 +-
 abs/core/runit-scripts/runitscripts/services/frontend/run | 4 ++--
 abs/core/runit-scripts/runitscripts/services/vnc/run      | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index d257ffe..151eb90 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=runit-scripts
 pkgver=8.3
-pkgrel=9
+pkgrel=10
 pkgdesc="collection of startup scripts for runit"
 url="http://smarden.org/runit/"
 license="BSD"
diff --git a/abs/core/runit-scripts/runitscripts/services/frontend/run b/abs/core/runit-scripts/runitscripts/services/frontend/run
index 22b65db..7a80665 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 sudo -u mythtv -i /usr/LH/bin/LinHES-start
+exec 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/run b/abs/core/runit-scripts/runitscripts/services/vnc/run
index bc411b1..b67d174 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 sudo -u vncsvc -i /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
-- 
cgit v0.12

