-
-
Save mouseos/ba1cbe3a9803787a63a112ebd3ca9146 to your computer and use it in GitHub Desktop.
Icecast2 multi-instance systemd configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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=icecast2 | |
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
icecast_public.xmlを作成してポートとパスワードをセット。
systemctl start icecast@icecast_public
systemctl enable icecast@icecast_public
で自動起動。
@以降が設定ファイル名なので何個か動かせる