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 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
