Skip to content

Instantly share code, notes, and snippets.

@ale-rinaldi
Created June 12, 2020 12:17
Show Gist options
  • Save ale-rinaldi/6ebb88b359431e9f04cf3da3a57d6e27 to your computer and use it in GitHub Desktop.
Save ale-rinaldi/6ebb88b359431e9f04cf3da3a57d6e27 to your computer and use it in GitHub Desktop.
Icecast2 multi-instance systemd configuration
[Unit]
Description=Icecast server - %i
After=network-online.target
Wants=network.target network-online.target
[Service]
Type=idle
ExecStart=/opt/icecast/bin/icecast -c /opt/icecast/etc/%i.xml
User=icecast
Group=icecast
Restart=on-failure
RestartSec=5
StartLimitBurst=3
StartLimitInterval=60s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment