summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/vnc/run
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/vnc/run')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/run14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/run b/abs/core/runit-scripts/runitscripts/services/vnc/run
new file mode 100755
index 0000000..af53139
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/run
@@ -0,0 +1,14 @@
+#!/bin/sh
+#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
+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
+