Fix some bugs corresponding smarttools. Use pid file when starting daemon.
Authored by: votdev 2007-01-16
Parent: [r384]
Child: [r386]