BigW Consortium Gitlab

Commit 780bac10 by Jacob Vosmaer

Be more defensive when running 'kill'

parent 90b1ecfa
...@@ -270,7 +270,7 @@ stop_gitlab() { ...@@ -270,7 +270,7 @@ stop_gitlab() {
fi fi
if [ "$gitlab_git_http_server_status" = "0" ]; then if [ "$gitlab_git_http_server_status" = "0" ]; then
echo "Shutting down gitlab-git-http-server" echo "Shutting down gitlab-git-http-server"
kill $(cat $gitlab_git_http_server_pid_path) kill -- $(cat $gitlab_git_http_server_pid_path)
fi fi
if [ "$mail_room_enabled" = true ] && [ "$mail_room_status" = "0" ]; then if [ "$mail_room_enabled" = true ] && [ "$mail_room_status" = "0" ]; then
echo "Shutting down GitLab MailRoom" echo "Shutting down GitLab MailRoom"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment