summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts
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
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')
-rwxr-xr-xabs/core/runit-scripts/PKGBUILD2
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/finish4
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/run6
3 files changed, 7 insertions, 5 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index f1fb053..478e13f 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=runit-scripts
pkgver=2.1.1
-pkgrel=67
+pkgrel=70
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license="BSD"
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