我的Icecast2和Ices0.4关闭在播放列表的末尾。如何使它在播放列表顶部自动重新启动?此外,我还使用此命令使其启动/usr/local/bin/ice -c /etc/ice/ices.conf -v,如何使其在服务器重新启动和--或崩溃后自动启动?
发布于 2022-01-31 13:31:38
我通常使用“主管”来确保某些东西正在运行,或者在停止或崩溃后重新启动。使用apt install supervisor安装,然后使用以下内容创建一个config /etc/ Install /con.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它应该能胜任这份工作。
https://stackoverflow.com/questions/70884706
复制相似问题