Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Make sure runners_registered is valid when no pid file exists #66

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/support/init.d/gitlab_ci_runner
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ INIT_LOG="/var/log/gitlab_ci_runner.log"

check_pid() {
# Number of registered runners in PID file
RUNNERS_REGISTERED=0
[ -f $RUNNERS_PID ] && RUNNERS_REGISTERED=`cat $RUNNERS_PID | wc -l`

# Number of active runner processes
Expand Down