# Start service-health@service.example.service to check that HTTPS endpoint. [Unit] Description=Check the HTTPS health endpoint for %I Wants=network-online.target After=network-online.target [Service] Type=oneshot DynamicUser=yes ExecStart=/usr/bin/curl --disable --fail --silent --show-error --max-time 15 --output /dev/null https://%I/healthz TimeoutStartSec=20s NoNewPrivileges=yes PrivateTmp=yes ProtectHome=yes ProtectSystem=strict