pmdaDaemon
initialize the PMDA to run as a daemon
- Provided by: libpcp-pmda3-dev (Version: 3.8.12ubuntu1)
- Source: pcp
- Report a bug
initialize the PMDA to run as a daemon
#include <pcp/pmapi.h>
#include <pcp/impl.h>
#include <pcp/pmda.h>
void pmdaDaemon(pmdaInterface *dispatch, int interface,
char *name, int domain,
char *logfile, char *helptext);
cc ... -lpcp_pmda -lpcp
pmdaDaemon initializes the pmdaInterface structure to use the interface extensions assuming the PMDA(3) is to be run as a daemon. The pmdaInterface structure is initialized with:
The callbacks are initialized to pmdaProfile(3), pmdaFetch(3), pmdaDesc(3), pmdaText(3), pmdaInstance(3) and pmdaStore(3).
The PMDA must be using PMDA_INTERFACE_2 or later.
PMAPI(3), PMDA(3), pmdaDSO(3), pmdaGetOpt(3) and pmdaText(3).