diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-11 19:30:47 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-11 19:30:47 (GMT) |
commit | 9431f7ae609b0877b403bad9db39aed4df159229 (patch) | |
tree | ff95f8397492cb577d8c725f90cd9503d499d5a5 /abs/core-testing/runit-scripts/runitscripts/services/Xvfb | |
parent | df5646446d84f38b695f00706a57b4c851be462a (diff) | |
download | linhes_pkgbuild-9431f7ae609b0877b403bad9db39aed4df159229.zip linhes_pkgbuild-9431f7ae609b0877b403bad9db39aed4df159229.tar.gz linhes_pkgbuild-9431f7ae609b0877b403bad9db39aed4df159229.tar.bz2 |
move the runit init scripts into their own package.
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/services/Xvfb')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/Xvfb/finish | 12 | ||||
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/Xvfb/run | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/Xvfb/finish b/abs/core-testing/runit-scripts/runitscripts/services/Xvfb/finish new file mode 100755 index 0000000..14cd831 --- /dev/null +++ b/abs/core-testing/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-testing/runit-scripts/runitscripts/services/Xvfb/run b/abs/core-testing/runit-scripts/runitscripts/services/Xvfb/run new file mode 100755 index 0000000..823916d --- /dev/null +++ b/abs/core-testing/runit-scripts/runitscripts/services/Xvfb/run @@ -0,0 +1,5 @@ +#!/bin/bash +. /etc/profile +VIRTUAL_DISPLAY=":50" +Xvfb_parm="$VIRTUAL_DISPLAY -screen 0 800x600x16" +Xvfb $Xvfb_parm |