From 7b3f302f194ae19b81cfa447eee943beebed9fa3 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 29 Jan 2015 21:24:35 +0000 Subject: runit-scripts: add xvnc for runit --- abs/core/runit-scripts/PKGBUILD | 2 +- abs/core/runit-scripts/runitscripts/services/xvnc/run | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 abs/core/runit-scripts/runitscripts/services/xvnc/run diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index 9d119a1..c1b4c8a 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=8.3 -pkgrel=3 +pkgrel=4 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core/runit-scripts/runitscripts/services/xvnc/run b/abs/core/runit-scripts/runitscripts/services/xvnc/run new file mode 100644 index 0000000..c1ef573 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/xvnc/run @@ -0,0 +1,17 @@ +#!/bin/sh +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions + +sv start frontend || exit 1 + +stat_runit "Starting x11vnc" +. /etc/systemconfig +if [ -e /etc/x11vnc.cfg ] +then + . /etc/x11vnc.cfg + exec chpst -umythtv x11vnc $x11vnc_options +else + exec chpst -umythtv x11vnc -forever -rfbport 5902 --passwd $xvncpassword +fi -- cgit v0.12