如何在系统启动时运行 ezstream?

How to run ezstream on system startup?

我在 Ubuntu 14.04 x64 服务器上安装了 icecast2 & ezstream,但现在我想 运行 在系统启动时使用 ezstream。 Icecast2 运行s 系统启动时自动。

请告诉我该怎么做。 icecast2启动后需要启动ezstream

P.S。我试图将命令放入 rc.local,但它对我不起作用:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/usr/bin/ezstream -c /root/ezstream_mp3.xml &

exit 0

感谢您的帮助!

这是我的失败。如果有人遇到这个问题,请检查你的 ezstream_mp3.xml,你应该有播放列表的完整路径而不是相对路径。