improved logging, added docs, better help support, much improved instancing, pip installable

This commit is contained in:
2025-02-24 14:26:48 -08:00
parent 6817437380
commit 252fdf4db1
10 changed files with 1313 additions and 180 deletions

View File

@@ -0,0 +1,26 @@
[Unit]
Description=Icecast IRC Bot Manager
After=network.target
Wants=network.target
Documentation=https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer
[Service]
Type=simple
User=icecast-bot
Group=icecast-bot
Environment=VIRTUAL_ENV=/opt/icecast-irc-bot/venv
Environment=PATH=/opt/icecast-irc-bot/venv/bin:$PATH
ExecStart=/opt/icecast-irc-bot/venv/bin/python3 /usr/local/bin/icecast-irc-bot-manager --config /etc/icecast-irc-bot/config.yaml
Restart=on-failure
RestartSec=5s
StandardOutput=append:/var/log/icecast-irc-bot/bot.log
StandardError=append:/var/log/icecast-irc-bot/error.log
# Security settings
NoNewPrivileges=yes
ProtectSystem=full
ProtectHome=yes
PrivateTmp=yes
[Install]
WantedBy=multi-user.target