Gitlab-ci-runner script contains invalid kill flag
Created by: n-e-g
The following line of default service start script for gitlab ci causes problem:
execute "cat $RUNNERS_PID | xargs kill -USR2"
The problem is that on some platforms (on debian in my case) kill does not have -U flag, thus script causes:
#service gitlab_ci_runner stop
Number of registered runners in PID file=10
Number of running runners=0
WARNING: Numbers of registered runners don't match number of running runners. Will try to stop them all
Registered runners=10
Running runners=0
Trying to stop registered runners...OK
Trying to kill ghost runners...kill: invalid argument U
Usage:
kill [options] <pid> [...]
Options:
<pid> [...] send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-l, --list=[<signal>] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit