daemon: new option --pid-file=<path> to store the pid