Add linkchecker Systemd service and timer

Doesn't yet email report of errors.
This commit is contained in:
Ben Sturmfels 2023-11-24 10:49:06 +11:00
parent 03e06738a0
commit 66c8b2c8ea
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Check all internal links on the Conservancy website
[Unit]
Description=Check Conservancy website links
[Service]
Type=oneshot
User=debian
ExecStart=linkchecker https://sfconservancy.org/
SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete
CapabilityBoundingSet=
NoNewPrivileges=true
PrivateDevices=true
PrivateNetwork=false
PrivateTmp=true
PrivateUsers=false
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict

View file

@ -0,0 +1,8 @@
[Unit]
Description=Check Conservancy website links
[Timer]
OnCalendar=weekly
[Install]
WantedBy=timers.target