diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/Xvfb/finish')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/Xvfb/finish | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/Xvfb/finish b/abs/core/runit-scripts/runitscripts/services/Xvfb/finish new file mode 100755 index 0000000..14cd831 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/Xvfb/finish @@ -0,0 +1,12 @@ +#!/bin/bash +. /etc/profile +VIRTUAL_DISPLAY=":50" +Xvfb_parm="$VIRTUAL_DISPLAY -screen 0 800x600x16" +pid=`ps -eaf | grep Xvfb | grep $VIRTUAL_DISPLAY | awk '{print $2}'` + if [ $pid ] + then + kill -9 $pid +# echo $pid +fi +rm -f /tmp/.X${VIRTUAL_DISPLAY}-lock + |