retitle 416179 start-stop-daemon: --make-pidfile doesn't work thanks When using --make-pidfile, start-stop-daemon puts a number in it which is one too little. Reading this bug report about double forking, I think this is the cause. You're probably putting the PID of the child in it, but you need the PID of the grandchild (the child dies almost immediately).
This is a different bug than the one originally reported. However, since the title didn't match the current problem anyway, I am so free to retitle it to my problem. ;-) If you want to keep tracking the other issue separately, please clone and retitle it yourself. I don't do that, because I can imagine that you want to solve both problems together anyway, so you may not want to have a separate bug report. Now I'm thinking about the problem described here, I may have an idea for that as well. Do you just fork and fork, or do you wait() for the first child to die before returning? If you do that, the kernel should be done with cleaning up (after all, the death is already reported). Or is that not the case? Thanks, Bas -- I encourage people to send encrypted e-mail (see http://www.gnupg.org). If you have problems reading my e-mail, use a better reader. Please send the central message of e-mails as plain text in the message body, not as HTML and definitely not as MS Word. Please do not use the MS Word format for attachments either. For more information, see http://a82-93-13-222.adsl.xs4all.nl/e-mail.html
signature.asc
Description: Digital signature

