2025-02-24 14:26:48 -08:00
|
|
|
[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
|
2025-02-24 21:48:51 -08:00
|
|
|
StandardOutput=journal
|
|
|
|
|
StandardError=journal
|
2025-02-24 14:26:48 -08:00
|
|
|
|
|
|
|
|
# Security settings
|
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
|
ProtectSystem=full
|
|
|
|
|
ProtectHome=yes
|
|
|
|
|
PrivateTmp=yes
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|