[Unit] Description=AWG2 Harness reboot scheduler After=network-online.target Wants=network-online.target StartLimitIntervalSec=15min StartLimitBurst=10 [Service] Type=exec User=root ExecStart=/usr/sbin/awg2-reboot-scheduler --config /etc/awg2-harness/config.toml # The scheduler exits 0 in two normal cases: reboot.enabled = false, and after systemd has # accepted the reboot request. Neither is a failure, so on-failure is required here - # Restart=always would respawn it in a loop on a host with reboots disabled. Restart=on-failure RestartSec=10s RestartSteps=4 RestartMaxDelaySec=160s StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target