From 780bac1026f96d68d8c658ead605c61a5b018f62 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer <contact@jacobvosmaer.nl> Date: Mon, 31 Aug 2015 16:15:41 +0200 Subject: [PATCH] Be more defensive when running 'kill' --- lib/support/init.d/gitlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab index f2923314d48..a80e7e77430 100755 --- a/lib/support/init.d/gitlab +++ b/lib/support/init.d/gitlab @@ -270,7 +270,7 @@ stop_gitlab() { fi if [ "$gitlab_git_http_server_status" = "0" ]; then echo "Shutting down gitlab-git-http-server" - kill $(cat $gitlab_git_http_server_pid_path) + kill -- $(cat $gitlab_git_http_server_pid_path) fi if [ "$mail_room_enabled" = true ] && [ "$mail_room_status" = "0" ]; then echo "Shutting down GitLab MailRoom" -- GitLab