Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Run botamusique as a daemon In the background

azlux edited this page Jan 23, 2021 · 3 revisions

There are multiple ways to run the bot as an automatic service.

You can create a systemd service with this file:

[Unit]
Description=XANA

[Service]
ExecStart=/home/azlux/botamusique/venv/bin/python /home/azlux/botamusique/mumbleBot.py -s azlux.fr -u XANA -c Bots
Restart=always
Type=simple
RestartSec=15s
WorkingDirectory=/home/azlux/botamusique

[Install]
WantedBy=multi-user.target

You can use the Supervisor. Here's an example of the configuration file:

[program:bot]
command={path to the bot}/venv/bin/python {path to the bot}/mumbleBot.py --config {path to the bot}/cinfiguration.ini
autostart=true
autorestart=true
startretries=10
startsecs=10
stopwaitsecs=5
user={user name}
environment=HOME='/home/{user name}'