Hi, 1)
I have written a upstart ( http://upstart.ubuntu.com/ ) script for liquidsoap, because I found none. It can be used to increase availability. If liquidsoap fails, it will immediately be respawned by upstart. You need to check the file paths and log directory. Best check its "exec" line before setting it live. Then you can place it at /etc/init/liquidsoap.conf. You can start, stop, restart liquidsoap by sudo start liquidsoap sudo stop liquidsoap sudo restart liquidsoap After a few respawns in short time the upstart job will finally fail, so you could use an additional root cronjob to restart in case of failure. * * * * * start liquidsoap For each running liquidsoap service you will have to copy and modify the file. Another limitation is that upstart currently only works with super user acount. Liquidsoap's daemon mode is not used, STD output should be enabled and will be piped to log file. (to see errors directly when starting it manually) Since I am not a upstart expert: If you have any ideas how to improve this, please share it. 2) Another script I want to share is a log merger for syslog, icecast and liquidsoap logs. ./log.pl It merges output of all 3 logs mentioned above in a tail-f manner. It helped me when checking logs of multiple processes on remote machine without GUI. Of cause you can use it for additional/other logs, too: Just change the log paths at the script. BR, Peter
description "liquidsoap"
start on (
net-device-up
local-filesystems
and runlevel [2345]
)
stop on runlevel [016]
respawn
exec su - liquidsoap -c "/usr/local/bin/liquidsoap /etc/liquidsoap/radio.liq
2>&1 >> /var/log/liquidsoap/radio.log"
log.pl
Description: Perl program
------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
