[Unit] Description=Heptapod Runner # Handcrafted by gracinet, loosely inspired by the GitLab Runner unit # of Debian 11 (bullseye) Wants=docker.service After=network.target [Install] WantedBy=multi-user.target [Service] # gracinet: running as unprivileged user, Debian uses these options # (will have to check if the relevant ones are available in our version): # Environment="DAEMON_ARGS=run --working-directory /var/lib/gitlab-runner --config /etc/gitlab-runner/config.toml --service gitlab-runner --syslog --user gitlab-runner" # gracinet: note that the Runner is able to watch and reload the configuration # file without calling out to systemd. Hence the unprivileged user is no # impediment to that. User=heptapod-runner # gracinet: build data (repositories etc) end up in the `builds` subdirectory # of the working directory WorkingDirectory=/srv/heptapod-runner StartLimitInterval=5 StartLimitBurst=10 ExecStart=/usr/local/bin/heptapod-runner run --config /etc/heptapod-runner/config.toml ExecReload=/bin/kill -HUP $MAINPID Restart=always RestartSec=120