From 08741c3cc09fadb3ebfa8ea92d3e5160c20990e4 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Fri, 24 Aug 2012 23:13:08 -0500
Subject: runit-scripts:  added svc for vnc

---
 abs/core/runit-scripts/PKGBUILD                         |  2 +-
 abs/core/runit-scripts/runitscripts/services/vnc/finish |  9 +++++++++
 abs/core/runit-scripts/runitscripts/services/vnc/run    | 12 ++++++++++++
 3 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100755 abs/core/runit-scripts/runitscripts/services/vnc/finish
 create mode 100755 abs/core/runit-scripts/runitscripts/services/vnc/run

diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index 8957212..f1fb053 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=66
+pkgrel=67
 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
new file mode 100755
index 0000000..e5db2ab
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/finish
@@ -0,0 +1,9 @@
+#!/bin/sh
+#set -x
+exec 2>&1
+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
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..c621c2c
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+#set -x
+exec 2>&1
+export TERM=linux
+. /etc/rc.conf
+. /etc/rc.d/functions
+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"
+
-- 
cgit v0.12