Daemon Mode

daemonfork

  • Version 9.3.0 and earlier: daemonfork setting not available.
  • Version 9.4.0 and later: daemonfork setting available.

The daemonfork keyword controls whether Privilege Management daemons make a second fork when run in daemon mode.

When the daemonfork keyword is set to yes, Privilege Management daemons (in daemon mode) fork after the setsid() call, meaning that they are no longer process group leaders or session leaders (for example, an old-style true daemon). Some init mechanisms (for example, upstart) lose track of the daemon’s pid when this is set to yes.

daemonfork yes
daemonfork no
  • Policy servers
  • Log servers
  • Run hosts

pidfilepath

  • Version 9.3.0 and earlier: pidfilepath setting not available.
  • Version 9.4.0 and later: pidfilepath setting available.

pidfilepath, when specified, is the path for Privilege Management daemon pid files, named <pidfilepath>/<prefix><daemonname><suffix>.pid. when run in daemon mode and not foreground mode, the pbmasterd, pblocald, pblogd, and pbsyncd daemons write the pid of the daemon after any forks.

pidfilepath  /var/run/

none

  • Policy servers
  • Log servers
  • Run hosts