polad

Command line, signals, logging, and exit status of the polad daemon.

polad is the PCE daemon. It reads its configuration file, accepts PCEP sessions, and serves the gRPC API. See Installation to install it.

polad [-f <file>]
polad --version
OptionDefaultDescription
-fpolad.yamlConfiguration file. A relative path is resolved against the working directory.
--versionPrint polad <version> and exit. Recognized only as the first argument. Release binaries and container images print the release version; binaries built with go install or make build print dev.
-hPrint the usage to standard error and exit with 1.

The application settings of polad are defined in its configuration file.

Environment variables

polad defines no application-specific environment variables. Its GoBGP gRPC client (gobgp.grpcClient) honors the standard proxy variables HTTPS_PROXY, https_proxy, NO_PROXY, and no_proxy.

If HTTPS_PROXY is set, connections to non-loopback GoBGP addresses use the proxy (HTTP CONNECT) unless the GoBGP host matches an entry in NO_PROXY. To bypass the proxy, add the GoBGP hostname, IP address, or CIDR range to NO_PROXY. Loopback addresses, such as 127.0.0.1 and localhost, are never proxied.

The gRPC library also reads GRPC_GO_LOG_SEVERITY_LEVEL, GRPC_GO_LOG_VERBOSITY_LEVEL, and GRPC_GO_LOG_FORMATTER to configure its own logging.

Running

polad writes logs to the log file and to standard output. On SIGINT or SIGTERM it sends Close to every PCEP session and exits with 0.

Exit status

StatusMeaning
0--version printed the version, or polad was stopped by SIGINT or SIGTERM.
1-h printed the usage, an invalid command line, unreadable or invalid configuration file, or a server that failed to start or run. The reason is printed to standard error.

Configuration

Every polad.yaml key, default, and validation rule.

Last modified November 20, 2026: docs: modernize documentation site (74dd3de)