run with pidfile in foreground mode
Merge branch 'daemon-context'