Skip to content

Instantly share code, notes, and snippets.

@ezgoodnight
Forked from DavidWittman/hubot.conf
Last active August 29, 2015 14:18
Show Gist options
  • Save ezgoodnight/a9e2264961281eab2108 to your computer and use it in GitHub Desktop.
Save ezgoodnight/a9e2264961281eab2108 to your computer and use it in GitHub Desktop.
Hubot - Default 8080 http port
# hubot
description "Hubot Campfire bot"
author "David Wittman <[email protected]>"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
# Path to Hubot installation
env HUBOT_DIR='/home/user/hubot/'
env HUBOT='bin/hubot'
env ADAPTER='campfire'
# Name (and local user) to run Hubot as
env HUBOT_USER='hubot'
# httpd listen port
env PORT='8080'
# Campfire-specific environment variables
env HUBOT_CAMPFIRE_TOKEN=''
env HUBOT_CAMPFIRE_ACCOUNT=''
env HUBOT_CAMPFIRE_ROOMS=''
# Keep the process alive, limit to 5 restarts in 60s
respawn
respawn limit 5 60
exec start-stop-daemon --start --chuid ${HUBOT_USER} --chdir ${HUBOT_DIR} \
--exec ${HUBOT_DIR}${HUBOT} -- --name ${HUBOT_USER} --adapter ${ADAPTER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment