Another possibilty (with using ubuntu) is upstart.
If liquidsoap fails, it will immediately be respawned by upstart.
You can start, stop, restart liquidsoap by
sudo start liquidsoap
sudo stop liquidsoap
sudo restart liquidsoap
For each running liquidsoap service you will have to copy and modify the file.
Liquidsoap's daemon mode is not used, since upstart indicates process fail if
its returning. in
LS config STD output should be enabled and will be piped to log file.
(to see errors directly when starting it manually)
You need to check the user, file paths and log directory.
Best check its "exec" line before setting it live.
Then you can place following lines at /etc/init/liquidsoap.conf.
#-------------START OF FILE
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"
#-------------END OF FILE
BR, Peter
Am 09.09.2011 19:38, schrieb Adrian Owen:
> Another approach is Dan Bernstein's supervise;
>
> http://cr.yp.to/daemontools.html
>
> So that if something should go wrong the service will be restarted, and if
> the service cannot be started, it will make sure it flaps in the wind like a
> tattered old flag...
>
> Adrian
>
> On Thu, Sep 1, 2011 at 10:51 PM, Romain Beauxis<[email protected]>wrote:
>
>> 2011/9/1 David Baelde<[email protected]>:
>>> 2011/9/1 Paulin Halenria<[email protected]>:
>>>> If I run /etc/liquidsoap/music.liq from the user, no problem
>>>> If the root run /etc/init.d/liquidsoap start, nothing happen, nothing in
>> the
>>>> log
>>> Try running as root: liquidsoap -c /etc/liquidsoap/music.liq (checking
>>> that the script is well formed) then liquidsoap -v
>>> /etc/liquidsoap/music.liq (run the script but not in daemon and with
>>> output on stdout). This should help troubleshooting.
>> Yup, make sure that logs and pidfile are acessible by the liquidsoap
>> user. You can try to temporarily set them to something in /tmp for
>> instance.. Also make sure the daemon user -- usually liquidsoap --
>> actually exists (see init script for its name)..
>>
>> Romain
>>
>>
>> ------------------------------------------------------------------------------
>> Special Offer -- Download ArcSight Logger for FREE!
>> Finally, a world-class log management solution at an even better
>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
>> download Logger. Secure your free ArcSight Logger TODAY!
>> http://p.sf.net/sfu/arcsisghtdev2dev
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>
>
> ------------------------------------------------------------------------------
> Why Cloud-Based Security and Archiving Make Sense
> Osterman Research conducted this study that outlines how and why cloud
> computing security and archiving is rapidly being adopted across the IT
> space for its ease of implementation, lower cost, and increased
> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
>
>
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the
Bottom Line. Protect your business and customers by understanding the
threat from malware and how it can impact your online business.
http://www.accelacomm.com/jaw/sfnl/114/51427462/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users