summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/vnc/finish
blob: 605a0c475d388372eb10522e35246d800e9093df (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
su vncsvc -c "vncserver -kill :1"
XFILE="/tmp/.X11-unix/X1"
if [ -e $XFILE ]
then
   rm -f $XFILE
fi