Skip to content

Instantly share code, notes, and snippets.

@DavidWittman
Created March 6, 2012 05:55

Revisions

  1. DavidWittman revised this gist Mar 6, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion hubot.conf
    Original file line number Diff line number Diff line change
    @@ -24,4 +24,5 @@ env HUBOT_CAMPFIRE_ROOMS=''
    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}
    exec start-stop-daemon --start --chuid ${HUBOT_USER} --chdir ${HUBOT_DIR} \
    --exec ${HUBOT_DIR}${HUBOT} -- --name ${HUBOT_USER} --adapter ${ADAPTER}
  2. DavidWittman created this gist Mar 6, 2012.
    27 changes: 27 additions & 0 deletions hubot.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # 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='/opt/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='5555'

    # 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}