[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

propsal: all daemons should chdir / on startup



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.

Of course, daemon() does this chdir properly. This is only a problem for
daemons that don't use daemon() for one reason or another.

I wonder if it should be policy that all daemons chdir / ?

-- 
see shy jo


Reply to: