Icecast2 with Ices 0.4-关闭问题



我的Icecast2和Ices 0.4在播放列表的末尾关闭。如何使它自动在播放列表顶部重新启动?此外,我使用此命令使其启动/usr/local/bin/ices-c/etc/ces/ices.conf-v,我如何使其在服务器重新启动和/或崩溃后自动启动?

我通常使用"监督者";以确保某个程序正在运行或在停止或崩溃后重新启动。使用apt install supervisor进行安装,然后使用以下内容创建config/etc/supervisor/conf.d/ices.conf:

[program:ices] 
command=/usr/local/bin/ices -c /etc/ices/ices.conf -v
user=icecast
autostart=true
autorestart=true
stdout_logfile=/dev/null
redirect_stderr=true
stopsignal=QUIT

它应该完成任务。

最新更新