# drain.conf stops the runner before an update reboots the machine, so running # jobs can finish first (TimeoutStopSec= of gitea-runner.service). A plain # reboot would stop the job containers at the same time as the runner. [Service] ExecStartPre=/bin/sh -c '/usr/lib/systemd/systemd-sysupdate pending || exit 0; systemctl stop gitea-runner.service' TimeoutStartSec=70min