Skip to content

Instantly share code, notes, and snippets.

@marceloslacerda
Created March 21, 2016 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marceloslacerda/cf2e24df1aad1af95acf to your computer and use it in GitHub Desktop.
Save marceloslacerda/cf2e24df1aad1af95acf to your computer and use it in GitHub Desktop.
# cat /etc/systemd/system/hubot.service
[Unit]
Description=Hubot
Requires=network.target
After=network.target
[Service]
Type=simple
WorkingDirectory=/root/hubot_hal/
User=root
Restart=always
RestartSec=10
; Configure Hubot environment variables, make sure to use quotes around whitespace as shown below.
Environment=HUBOT_SLACK_TOKEN="REDACTED" HUBOT_LOG_LEVEL="info"
ExecStart=/root/hubot_hal/bin/hubot --adapter slack
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment