Skip to content
quarry Artifact [694ffd37d0]
Login

Artifact [694ffd37d0]

Artifact 694ffd37d05bbb9cb327fa2c652ec0e7525bbb2d036f167aea2cb46b8cc8e8d2:


# Sends "<unit> failed" to the forge's admins through notify (the
# quarry-ops workflow). Instanced by OnFailure=quarry-alert@%N.service;
# %i is the failed unit's name. The notify key comes from doppler, as
# quarry.service's does. No OnFailure= here: an alert that fails is a
# journal line (quarry-alert), never another alert.
[Unit]
Description=quarry alert: %i failed

[Service]
Type=oneshot
EnvironmentFile=/srv/quarry/env
# doppler reads its config under $HOME, and a root unit without User=
# gets no $HOME from systemd: without this, doppler run fails before
# the script starts.
Environment=HOME=/root
ExecStart=/usr/bin/doppler run --project quarry --config prd -- /srv/quarry/quarry-alert.sh %i