summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-08-31 16:15:41 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-08-31 16:15:41 +0200
commit780bac1026f96d68d8c658ead605c61a5b018f62 (patch)
treed1f60473fa03632c2e5d8ef7c4c5cd67569aaceb
parent90b1ecfa011d31c0f24cfcbb94a7b184e485e4fd (diff)
downloadgitlab-ce-gitlab-git-http-server.tar.gz
Be more defensive when running 'kill'gitlab-git-http-server
-rwxr-xr-xlib/support/init.d/gitlab2
1 files changed, 1 insertions, 1 deletions
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"