Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonfairbanks/hubot-as-a-service
A systemd service file to start Hubot. Handles reboots and crashes.
https://github.com/jonfairbanks/hubot-as-a-service
hubot slack systemd-service
Last synced: 15 days ago
JSON representation
A systemd service file to start Hubot. Handles reboots and crashes.
- Host: GitHub
- URL: https://github.com/jonfairbanks/hubot-as-a-service
- Owner: jonfairbanks
- License: mit
- Created: 2017-11-20T20:11:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T02:15:03.000Z (about 7 years ago)
- Last Synced: 2024-12-29T01:43:25.812Z (28 days ago)
- Topics: hubot, slack, systemd-service
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hubot as a Service
A systemd service file to start Hubot. Handles reboots and crashes.###### Getting Started
1. Set ENV variables and location/user in the service file.
2. Place in `/etc/systemd/system`
3. To load the service file: `systemctl daemon-reload`
4. To start the service: `service hubot start`
5. Verify Hubot is active in Slack###### Viewing Console Output
Hubot's console output is directed to `~/Logs/hubot.log` by default. To change this location, edit the `ExecStart` entry (line 23).
The log is cleared each time the service is ran. If you want to keep a running log, change `>` to `>>` in the `ExecStart` entry (line 23).###### Updating
To update the service file ---
1. Stop the Hubot service: `service hubot stop`
2. Copy over the new service file or edit the existing one.
3. Reload it: `systemctl daemon-reload`
4. Start it: `service hubot start`
5. Re-verify Hubot is active in Slack###### Restarting Hubot
To restart Hubot: `service hubot restart`###### Notes
ENV Variables should not include any quotes or escaping (Correct Example: `Environment=HUBOT_DARK_SKY_DEFAULT_LOCATION=90210`)For more information on preventing restart loops with StartLimitInterval & StartLimitBurst, [please see the manual](https://www.freedesktop.org/software/systemd/man/systemd.unit.html#StartLimitIntervalSec=).