Skip to content

Instantly share code, notes, and snippets.

@markcarver markcarver/bot.conf
Created Mar 20, 2015

What would you like to do?
Create this file as /etc/init/bot.conf
# Drush Bot Service
description "Drush Bot"
author "Mark Carver <>"
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
respawn limit 2 5
expect fork
env DRUSH="/usr/local/bin/drush -y --root=/path/to/drupal/docroot --uri="
pre-start script
${DRUSH} bot-status-reset
end script
exec ${DRUSH} bot-start &
post-stop script
${DRUSH} bot-status-reset
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.