pub fn service_unit(
service: &str,
use_systemd_creds: bool,
depends_on: &[&str],
) -> Result<String>Expand description
Generate a systemd service unit for a service.
§Arguments
service— service name (e.g., “policy”, “oauth”)use_systemd_creds— whether to emitImportCredential=directivesdepends_on— service names that must start before this one
§Credential scoping
All services receive node-level credentials (signing key, TLS/QUIC
materials) plus their per-service credentials; only policy additionally
receives the CA private key.
§Startup ordering
When depends_on is non-empty, the unit includes After= and
Requires= directives so systemd enforces the dependency graph.