[Unit] Description=pkg-cache self-check (stop nginx+registry when the cache is unhealthy) Documentation=file:///usr/local/sbin/pkgcache-selfcheck After=nginx.service [Service] Type=oneshot ExecStart=/usr/local/sbin/pkgcache-selfcheck TimeoutStartSec=120 Nice=5