improved logging, added docs, better help support, much improved instancing, pip installable
This commit is contained in:
26
icecast-irc-bot-manager.service
Normal file
26
icecast-irc-bot-manager.service
Normal 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
|
||||
Reference in New Issue
Block a user