Created
November 9, 2016 09:05
-
-
Save Terrance/c94ecb78fe36bff5f9a3edde5dea96fa to your computer and use it in GitHub Desktop.
A systemd unit for running multiple Hangoutsbot instances.
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
[Unit] | |
Description=Hangoutsbot: %i | |
After=network.target | |
[Service] | |
Type=simple | |
User=hangoutsbot | |
Group=hangoutsbot | |
ExecStart=/opt/hangoutsbot/venv/bin/python /opt/hangoutsbot/hangupsbot/hangupsbot.py \ | |
--log /var/hangoutsbot/%i/hangupsbot.log \ | |
--cookies /var/hangoutsbot/%i/cookies.json \ | |
--memory /var/hangoutsbot/%i/memory.json \ | |
--config /var/hangoutsbot/%i/config.json | |
Restart=always | |
RestartSec=5 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment