diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/Xvfb')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/Xvfb/finish | 12 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/Xvfb/run | 11 |
2 files changed, 23 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 + diff --git a/abs/core/runit-scripts/runitscripts/services/Xvfb/run b/abs/core/runit-scripts/runitscripts/services/Xvfb/run new file mode 100755 index 0000000..71ffedd --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/Xvfb/run @@ -0,0 +1,11 @@ +#!/bin/bash +. /etc/profile +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting XVFB" + + +VIRTUAL_DISPLAY=":50" +Xvfb_parm="$VIRTUAL_DISPLAY -screen 0 800x600x16" +Xvfb $Xvfb_parm |