]>
Commit | Line | Data |
---|---|---|
af21cb3e ER |
1 | # |
2 | # systemd unit file for CentOS 7, Ubuntu bleeding edge | |
3 | # | |
4 | [Unit] | |
8264fff3 | 5 | Description=GitLab Runner |
af21cb3e ER |
6 | # start us only once the network and logging subsystems are available |
7 | After=syslog.target network.target | |
8 | ||
9 | # See these pages for lots of options: | |
10 | # http://0pointer.de/public/systemd-man/systemd.service.html | |
11 | # http://0pointer.de/public/systemd-man/systemd.exec.html | |
12 | [Service] | |
13 | Type=simple | |
98c01f80 ER |
14 | User=gitlab-runner |
15 | Group=gitlab-runner | |
8264fff3 | 16 | ExecStart=/usr/bin/gitlab-runner run |
af21cb3e ER |
17 | |
18 | # if we crash, restart | |
19 | RestartSec=1 | |
20 | Restart=on-failure | |
21 | ||
22 | # use syslog for logging | |
23 | StandardOutput=syslog | |
24 | StandardError=syslog | |
8264fff3 | 25 | SyslogIdentifier=gitlab-runner |
af21cb3e ER |
26 | |
27 | [Install] | |
28 | WantedBy=multi-user.target |