Discussion:
[Savonet-users] liquidsoap startup and reloading
Romeo
2009-03-28 02:40:35 UTC
Permalink
It seems like liquidsoap doesn't create a pid file even if this option is set in configuration script. so it doesn't restart channels when launching "invoke-rc.d liquidsoap force-reload", and doesn't stop channels when launching "invoke-rc.d liquidsoap stop"

i need to kill every instance of liquidsoap manualy before i can start it again
David Baelde
2009-03-28 06:04:07 UTC
Permalink
Post by Romeo
It seems like liquidsoap doesn't create a pid file even if this option is set in configuration script.
To obtain a PID file, the pidfile should be set but liquidsoap also
needs to run in daemon mode.

Also, check where it creates the PID file (try forcing piddir).
Post by Romeo
so it doesn't restart channels when launching "invoke-rc.d liquidsoap force-reload",
and doesn't stop channels when launching "invoke-rc.d liquidsoap stop"
The provided script is only meant to stop/restart the liq instances
that were started using the script. It can work for instances that you
start yourself, but they must be daemonized.

Hope that helps,
--
David
Romeo
2009-03-30 07:56:11 UTC
Permalink
yes, it helped!

i added

if [ ! -e $rundir ]; then
mkdir -m 777 $rundir
fi

into rc Script - it didn't helped, and then

set("init.daemon.pidfile.path","/var/run/liquidsoap/<script>.pid")

into liquidsoap script - worked fine!

after this liquidsoap successfully starts and stops usigng rc script
Interesting.
i start liquidsoap only by using the provided script
and i do not change the location of pid files.
Can you try by forcing the directory to be the one expected by the rc script?
# You can leave the <script>.pid as is, liquidsoap will replace it by the
# name of the script.
set(init.daemon.pidfile.path,"/var/run/liquidsoap/<script>.pid")
set("init.daemon.pidfile",true)
set("init.daemon",true)
p.s. as i mentioned, it all has begun after i rebuild liquidsoap
from SVN yesterday.
It is possible that you did not configure it with the same parameters
as before. Do you use the same rc scripts as before?
-------- Завершение пересылаемого сообщения --------
Loading...