summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-25 19:54:23 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-25 19:54:23 (GMT)
commit98601eca343f83da9a4a7470a66b18ac97a15ef0 (patch)
tree1ee0f326b63491e72c6db9fdb1e4bf5617b2d8f5 /abs/core/runit-scripts/runitscripts
parente0c9e36ae69f786bfd67166bd24728f6b74ce688 (diff)
downloadlinhes_pkgbuild-98601eca343f83da9a4a7470a66b18ac97a15ef0.zip
linhes_pkgbuild-98601eca343f83da9a4a7470a66b18ac97a15ef0.tar.gz
linhes_pkgbuild-98601eca343f83da9a4a7470a66b18ac97a15ef0.tar.bz2
runit-scripts: make vnc service advertise via zeroconf
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