Allow configuration of cache size.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Corrections for daemonization.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>