summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/finish4
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/run6
2 files changed, 6 insertions, 4 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/finish b/abs/core/runit-scripts/runitscripts/services/vnc/finish
index e5db2ab..243488c 100755
--- a/abs/core/runit-scripts/runitscripts/services/vnc/finish
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/finish
@@ -5,5 +5,5 @@ export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
stat_runit "Stopping vnc service"
-
-su vncsvc -c "vncserver -kill :1" \ No newline at end of file
+rm -f /etc/avahi/services/vnc.service 2>/dev/null
+su vncsvc -c "vncserver -kill :1"
diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/run b/abs/core/runit-scripts/runitscripts/services/vnc/run
index c621c2c..af53139 100755
--- a/abs/core/runit-scripts/runitscripts/services/vnc/run
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/run
@@ -2,11 +2,13 @@
#set -x
exec 2>&1
export TERM=linux
+MYTH_RUN_STATUS="1"
. /etc/rc.conf
. /etc/rc.d/functions
+. /etc/profile
stat_runit "Starting vnc service"
geometry=1024x768
#. /etc/conf.d/vncserver 2>/dev/null
-
-exec su vncsvc -c "/usr/bin/vncserver -fg -geometry $geometry :1"
+cp -f $MV_ROOT/templates/vnc.service /etc/avahi/services/vnc.service 2>/dev/null
+exec su vncsvc -c "/usr/bin/vncserver -fg -geometry $geometry :1" 2>/var/log/vnc.log