Added pid file generation to control daemonized process.
Authored by: allista 2014-04-17
Parent: [r190]
Child: [r192]