17 lines
334 B
SYSTEMD
17 lines
334 B
SYSTEMD
|
[Unit]
|
||
|
Description=Forgejo Runner
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
RestartSec=2s
|
||
|
Type=simple
|
||
|
User=forgejo-runner
|
||
|
Group=forgejo-runner
|
||
|
WorkingDirectory=/var/cache/forgejo-runner/
|
||
|
ExecStart=/usr/bin/forgejo-runner daemon --config /etc/forgejo-runner/config.yml
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.targe
|