Skip to content

Reload without restart

Send the server SIGHUP, and it reads its configuration file again:

systemctl reload bastionxp-ca            # with systemd
kill -HUP <pid of bxp serve>    # without

What a reload changes

Setting On reload
access (who may log in, and what they get) Applied at once
acme.allowed_domains, acme.allowed_ip_ranges Applied at once
acme.challenges Applied at once, also for pending authorizations
acme.limits Applied at once
Everything else: data_dir, ca, server, profiles, oidc, ldap, scep, metrics, acme.dns_resolver, turning ACME on or off Needs a restart; the log lists such changes

Requests in progress finish with the old rules.

A broken file is never used

A file that does not load (a typo, an unknown key, an invalid value) is not used at all. The server keeps the configuration it has, and logs why. A mistake cannot take the CA down.

Check a file before reloading:

bxp doctor --config /etc/bastionxp-ca/bastionxp-ca.yaml

In the log

level=INFO msg="configuration reloaded" access_rules=3 acme_domains=[example.com]

When the file changed something a reload cannot apply, the log says the change needs a restart and names the settings.