Joey Hess <[EMAIL PROTECTED]> writes: > I've noticed what seems to be a common problem lately: daemons that do not > chdir / on startup. The problem is, if you mount a debina cd on /mnt, cd to > /mnt, install some daemons, then /mnt is always busy after that and cannot > be unmounted. The solution is to add a chdir / to the daemon's startup code > or to the init.d script.
A daemon that doesn't cd to /, or close all fd's, or set itself up as a session leader, is simply buggy upstream. Try to fix the C code rather than code around it in the /etc/init.d, and recommend to the upstream author that he buy a copy of Stevens "Advanced Programming in the Unix Environment". Guy