Skip to content

Instantly share code, notes, and snippets.

@mouseos
Forked from ale-rinaldi/[email protected]
Last active September 8, 2024 13:23
Show Gist options
  • Save mouseos/ba1cbe3a9803787a63a112ebd3ca9146 to your computer and use it in GitHub Desktop.
Save mouseos/ba1cbe3a9803787a63a112ebd3ca9146 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=icecast2
Group=icecast
Restart=on-failure
RestartSec=5
StartLimitBurst=3
StartLimitInterval=60s
[Install]
WantedBy=multi-user.target
@mouseos
Copy link
Author

mouseos commented Sep 8, 2024

icecast_public.xmlを作成してポートとパスワードをセット。
systemctl start icecast@icecast_public
systemctl enable icecast@icecast_public
で自動起動。
@以降が設定ファイル名なので何個か動かせる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment