On 11-05-13 at 07:44pm, Guillaume Ayoub wrote:
> Here are 2 init scripts sent by Ɓukasz (radicale.init +
> radicale.default) and Nicolas (radicale).

Thanks.

I hesitate, as I fear this will steal much attention when I dive into 
it: Better with no init script than a badly implemented one.


> I've never written any init script, but they seem to work quite well. 
> Nicolas just said that his version was not working if "start" was 
> called twice: the pid of the process does not change, but the pid in 
> the pid file changes.
> 
> With the two solutions, start-stop-daemon needs to deamonize Radicale 
> (with --background), as Radicale does not give the good pid when it is 
> launched with the --daemon option.


Best would be if Radicale could be perfected as a daemon.  See e.g. at 
http://0pointer.de/lennart/projects/libdaemon/#overview for what it 
involves.

Second best, as I understand it, for daemons with incomplete daemonizing 
routines, is to completely avoid those and instead use e.g. launchtool: 
http://people.debian.org/~enrico/launchtool.html

But sure, it is also possible to figure out which parts of the 
daemonizing process is properly handled by Radicale and only cover over 
the broken ones - but that's what I fear takes time and frustration to 
figure out properly.


Thanks anyway for the provided scripts.


Kind regards,

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: Digital signature

Reply via email to