Commit Graph

2 Commits (9cca1c878d835c2ead3fea6742615bb3792bd633)

Author SHA1 Message Date
Dustin e3a349e3a1 pkg/alertmanager: Configure state directory
dustin/metricspi/pipeline/head This commit looks good Details
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
Dustin 8099546ec8 pkg/alertmanager: Add systemd unit
dustin/metricspi/pipeline/head This commit looks good Details
The *alertmanager.service* systemd unit allows the AlertManager to run
as a daemon process.
2022-08-10 17:40:17 -05:00