Fix comments in systemd unit service file (#274)

Apparently, even though my IDE grayed them out, you cannot start a comment mid-line in a systemd configuration file.

I really should have tested this :3

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/274
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Kwonunn <kwonunnx@gmail.com>
Co-committed-by: Kwonunn <kwonunnx@gmail.com>
pull/280/head
Kwonunn 2024-09-18 13:40:32 +00:00 committed by Michael Kriese
parent 89e4df134b
commit 6c067bfd76
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,10 @@ After=docker.service
[Service]
ExecStart=forgejo-runner daemon
ExecReload=/bin/kill -s HUP $MAINPID
User=runner # This user must be created first
WorkingDirectory=/home/runner # This directory must be created first
# This user and working directory must already exist
User=runner
WorkingDirectory=/home/runner
Restart=on-failure
TimeoutSec=0
RestartSec=10