26 lines
730 B
SYSTEMD
26 lines
730 B
SYSTEMD
|
|
[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
|