Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'rescue-vagrant-lock'
Browse files Browse the repository at this point in the history
Conflicts:
	bin/vagrant-go
  • Loading branch information
jarib committed Sep 27, 2011
2 parents 00dd98c + 1acaf95 commit 0ff280a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions puppet/modules/xvfb/files/init.sh
@@ -1,4 +1,5 @@
#!/bin/sh

XVFB=/usr/bin/Xvfb
XVFBARGS=":1 -ac -screen 0 1024x768x16"
PIDFILE=/tmp/xvfb-pid-1
Expand All @@ -19,6 +20,11 @@ case "$1" in
if [ -f $PIDFILE ] && [ -d /proc/$(cat $PIDFILE) ]; then
echo "Xvfb running."
exit 0
elif [ -f $PIDFILE ]; then
echo "old pidfile found, removing.."
rm $PIDFILE
echo "Xvfb not running."
exit 5
else
echo "Xvfb not running."
exit 4
Expand Down

0 comments on commit 0ff280a

Please sign in to comment.