ALL

Solo para leer y verificar. No puedes copiar, usar, modificar ni redistribuir este código. Aviso completo en la página principal.

tunnel/deploy/all-tunnel-certbot-failed.service

SHA-256: 609fdf754ab3dd758e55d80138d79d349d7d1b05928eecf5600fd2556d690f74
14 líneas · 1182 bytes · Ver en GitHub

1# Runs when all-tunnel-certbot.service fails (OnFailure=). It makes the failure impossible to miss on the node itself:
2# a CRITICAL line in the journal (`journalctl -p crit -t all-tunnel-certbot`), a marker file that `the deploy tool status` reports, and a wall
3# message to whoever is logged in. The service itself stays in the failed state (`systemctl --failed`) until the next run succeeds, which clears the
4# marker (all-tunnel-cert-check does).
5# The mail to the owner does not come from here (a node has no mail and no secret to send one with): it comes from the site monitor (14 and 5 days left,
6# the site's monitor) and from the independent CT watcher, which both read the certificate the node SERVES.
7[Unit]
8Description=The ALL tunnel node's certificate renewal FAILED
9
10[Service]
11Type=oneshot
12ExecStart=/usr/bin/logger -p daemon.crit -t all-tunnel-certbot "node certificate renewal FAILED: read journalctl -u all-tunnel-certbot, fix it, then systemctl start all-tunnel-certbot"
13ExecStart=/bin/sh -c 'date -u +%%FT%%TZ > /var/lib/all-tunnel/certbot.failed'
14ExecStart=-/usr/bin/wall "all-tunnel: the node certificate renewal FAILED (journalctl -u all-tunnel-certbot)"