gitlab-runner.conf 486 Bytes
Newer Older
Jacob Vosmaer's avatar
Jacob Vosmaer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Upstart configuration file for gitlab-ci-runner
# Control with:
#
#   sudo service gitlab-runner start
#

description "GitLab Runner"
author "GitLab B.V."

start on runlevel [2345]

env HOME=/home/gitlab-runner

# Always restart the runner if it dies / exits
respawn

# Log to /var/log/upstart/
console log

# Run the process as gitlab-runner:gitlab-runner
setuid gitlab-runner
setgid gitlab-runner

script
  export HOME=$HOME
  exec /opt/gitlab-runner/bin/runner -C $HOME
end script