-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhubot_example.conf
40 lines (31 loc) · 1.04 KB
/
hubot_example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# hubot
description "Hubot Hipchat bot"
# PATH=/home/wwright/hipchat_bot/node_modules/hubot/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
# Path to Hubot installation
env HUBOT_DIR='/home/wwright/hipchat_bot/'
env HUBOT='bin/hubot'
env ADAPTER='hipchat'
# Name (and local user) to run Hubot as
env HUBOT_USER='wwright'
# httpd listen port
env PORT='5555'
# Hipchat-specific environment variables
env HUBOT_AUTH_ADMIN=''
env HUBOT_HIPCHAT_JID=''
env HUBOT_HIPCHAT_PASSWORD=''
env HUBOT_HIPCHAT_ROOMS=''
# Jenkins-specific environment variables
env HUBOT_JENKINS_URL=''
env HUBOT_JENKINS_AUTH=''
# JIRA-specific environment variables
env HUBOT_JIRA_URL=''
env HUBOT_JIRA_USER=''
env HUBOT_JIRA_PASSWORD=''
env HUBOT_JIRA_USE_V2='true'
# 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} >> /var/log/hubot.log 2>&1