Print pid to log file when running in background
Print pid to log file when running in background

- Add pid to log file print out
- Put "background" inside HAVE_FORK block

legatvs/cclive,legatvs/cclive,legatvs/cclive