Commit Graph

2 Commits

Author SHA1 Message Date
e3a349e3a1 pkg/alertmanager: Configure state directory
All checks were successful
dustin/metricspi/pipeline/head This commit looks good
AlertManager is a stateful service, and as such needs a writable
location for its data.  Using the `StateDirectory` service unit
directive, we can configure systemd to create this directory
automatically, if it does not already exist when the service starts.

In order for the service to be able to write to the state directory, it
must have a stable UID.  This means it cannot use the `DynamicUser`
service unit directive.
2022-08-10 18:21:36 -05:00
8099546ec8 pkg/alertmanager: Add systemd unit
All checks were successful
dustin/metricspi/pipeline/head This commit looks good
The *alertmanager.service* systemd unit allows the AlertManager to run
as a daemon process.
2022-08-10 17:40:17 -05:00