31 lines
813 B
Desktop File
31 lines
813 B
Desktop File
; Hubot systemd service unit file
|
|
; Place in e.g. `/etc/systemd/system/hubot.service`, then `systemctl daemon-reload` and `service hubot start`.
|
|
|
|
[Unit]
|
|
Description=Bog is not a bug.
|
|
Requires=network.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/home/bot/G1LibreBot
|
|
User=bot
|
|
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
StandardOutput=file:/var/log/g1librebot.log
|
|
StandardError=file:/var/log/g1librebot.log
|
|
|
|
; Configure Hubot environment variables, use quotes around vars with whitespace as shown below.
|
|
Environment=TELEGRAM_TOKEN=""
|
|
Environment=TELEGRAM_INTERVAL="3500"
|
|
|
|
; Alternatively multiple environment variables can loaded from an external file
|
|
;EnvironmentFile=/etc/hubot-environment
|
|
|
|
ExecStart=/home/bot/G1LibreBot/bin/hubot --name "G1LibreBot" -a telegram
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|