summaryrefslogtreecommitdiff
path: root/deployment/doot-health.service
blob: 33e8e77e10b52509a9526668ac903bbd09a518f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=doot.terst.org health check (gateway routes + sub-services)
Documentation=file:///site/doot.terst.org/app-scripts/health-check
After=network-online.target

[Service]
Type=oneshot
# Runs as root: recovery needs systemctl start and chmod on www-data files.
User=root
ExecStart=/site/doot.terst.org/app-scripts/health-check

# A failed run should be visible in `systemctl --failed`, so do not swallow the
# exit code. The unit going failed is a large part of the alerting here, given
# there is no mail/ntfy on this host.
SuccessExitStatus=0

[Install]
WantedBy=multi-user.target