Created
March 21, 2016 14:44
-
-
Save marceloslacerda/cf2e24df1aad1af95acf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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