Daemon and Scheduling
Unattended maintenance lives in the daemon command group. Each maintenance cycle does three things in order:
- ARI refresh — refresh ARI suggestions for in-use, completed, non-revoked certificates whose check deadline has passed
- Automatic renewal — renew certificates that are due and satisfy the admission rules
- Deployment retry — republish bindings whose deployment failed (publish/reload) and whose retry deadline has passed
One item failing never blocks the others; the cycle report summarizes the results.
Resident mode
Section titled “Resident mode”aster-acme daemon runaster-acme daemon run --interval 300Runs in the foreground: an immediate check on startup, then the next cycle after each interval. The interval defaults to 60 seconds (1–86400), overridable with --interval or daemon_interval in config.toml; changing the configuration requires restarting the daemon.
- Only one resident daemon per data-dir (exclusive lock)
- On Unix,
Ctrl-C/SIGTERMshut down cooperatively: no new cycles start, in-flight work finishes and its results are kept; Windows supportsCtrl-C - Human logs use the same timestamped-level format as issuance;
--jsonemits JSON Lines (started/cycle/stoppedevents)
Cron mode
Section titled “Cron mode”aster-acme daemon run-onceaster-acme daemon run-once --data-dir /srv/aster-acme --jsonRuns one non-interactive maintenance cycle and exits — the shape for cron. AsterACME never installs crontabs; replace paths yourself:
*/15 * * * * /usr/local/bin/aster-acme daemon run-once --data-dir /srv/aster-acmeCron frequency only decides when saved deadlines are checked; it never bypasses CA Retry-After or the renewal plan. When there is no renewal or deployment work, run-once simply reports an empty cycle, so higher frequencies are fine.
systemd example
Section titled “systemd example”[Unit]Description=AsterACME certificate maintenanceAfter=network-online.targetWants=network-online.target
[Service]ExecStart=/usr/local/bin/aster-acme daemon run --data-dir /srv/aster-acmeRestart=on-failureUser=aster-acme
[Install]WantedBy=multi-user.targetBoot startup, restart policy, and log collection belong to the system service manager; the daemon itself never installs or modifies system services.
Auto-renewal admission
Section titled “Auto-renewal admission”The daemon auto-renews only certificates that are in use, completed, not revoked, not expired, and due, with a validation implementation of webroot, standalone, tls_alpn, or dns_provider; dns_persist only when reusing a long-lived TXT identical to the predecessor. manual_dns and manual_http are marked skipped in the report.
Concurrent foreground cert renew runs are safe: file locks ensure only one side creates a renewal generation.
Failure retries
Section titled “Failure retries”- Renewal failures: local backoff of 1 minute, 10 minutes, 100 minutes, then daily; a valid CA
Retry-Afterwins when later. State is persisted — repeated cron triggers never reset the count - Deployment failures: backoff per binding and generation at the same rhythm; the daemon retries only bindings with explicit publish/reload failures, never re-issuing
- Uncertain reload (
ReloadUncertain): the service may already have been affected — never retried automatically. Inspect the service first, then runcert deploy run CERT -n BINDINGexplicitly
--now (single or batch) bypasses the local backoff for early retries but never the CA’s Retry-After.