summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/xvnc/run
blob: c1ef573256975d5ed9af388c66cecb39a8ad5d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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