From 68b345130ca4f46f3482bc023d2c325dbbf254b7 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 1 Dec 2012 12:08:23 -0600 Subject: runit-scripts: on shutdown force remove of x:1 --- abs/core/runit-scripts/PKGBUILD | 2 +- abs/core/runit-scripts/runitscripts/services/vnc/finish | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index b9ec500..47ffd97 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=88 +pkgrel=89 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 index 243488c..605a0c4 100755 --- a/abs/core/runit-scripts/runitscripts/services/vnc/finish +++ b/abs/core/runit-scripts/runitscripts/services/vnc/finish @@ -7,3 +7,8 @@ export TERM=linux 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 -- cgit v0.12