PID file

Write PID file when running in background and specified in configuration
file.