Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-08-31 17:15:41 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-08-31 17:15:41 +0300
commit780bac1026f96d68d8c658ead605c61a5b018f62 (patch)
treed1f60473fa03632c2e5d8ef7c4c5cd67569aaceb /lib
parent90b1ecfa011d31c0f24cfcbb94a7b184e485e4fd (diff)
Be more defensive when running 'kill'
Diffstat (limited to 'lib')
-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"