summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/vnc/finish
blob: c02667344b4c55420b2ba69646362a3e14181ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#set -x
exec 2>&1
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
stat_runit "Stopping vnc service"
rm -f /etc/avahi/services/vnc.service 2>/dev/null
sudo -u vncsvc vncserver -kill :1
XFILE="/tmp/.X11-unix/X1"
if [ -e $XFILE ]
then
   rm -f $XFILE
fi