From: Leonard de R. <lee...@le...> - 2013-04-26 11:04:23
|
Romain, On 4/26/2013 11:38, Romain Beauxis wrote: > If you compile with the latest ocaml-dtools and use the internal > daemonization option, it should. > > Make sure you do "git pull" from within ocaml-dtools to catch the > latest git there. > > I will add a log message to see when pid file is created soon. Or you > could do it yourself and test, just look for the line where pid file > is created and add: > Printf.printf "Pid file created\n"%!"; > right after! > I did a new clone from the liquidsoap-full.git, including make init and .bootstrap. Then changed the dtools source and installed. Here are my findings. 1. The pidfile in /var/run/liquidsoap isn't being removed after closing the program 2. When i use sudo -u liquidsoap liquidsoap foo.liq --daemon, sometimes the bash prompt returns before printing the pidfile created message. Like this: root@elles:~# sudo -u liquidsoap liquidsoap /etc/liquidsoap/foo.liq --daemon root@elles:~# Pid file created In other words, it seems forking starts too late, or the start process which is exited after forking exits too early. I can't check where the pidfile created message pops up in the log, as printing the log to stdout doesn't work when daemonizing. I'll try some more things and might come back later today. Leonard |