Skip to content

Instantly share code, notes, and snippets.

@alister
Created November 22, 2011 17:02
Show Gist options
  • Save alister/1386210 to your computer and use it in GitHub Desktop.
Save alister/1386210 to your computer and use it in GitHub Desktop.
#!/usr/bin/php
<?php
// cli-beanstalk-worker.php
// for testing of the BASH script
exit (rand(95, 100));
/* normally we would return one of
# 97 - planned pause/restart
# 98 - planned restart
# 99 - planned stop, exit.
# anything else is an unplanned restart
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment