summaryrefslogtreecommitdiff
path: root/gitlab-ctl.sh
diff options
context:
space:
mode:
authorElan Ruusamäe2017-04-18 20:03:53 (GMT)
committerElan Ruusamäe2017-04-18 20:03:53 (GMT)
commitb56340361cbe9c2b798806f67de1af2081c22880 (patch)
treef290d49acdec4d41fa8fa3145743f70f7fa347c6 /gitlab-ctl.sh
parentaf3270663e281963563d818c3bd3e4581d8081a8 (diff)
downloadgitlab-ce-b56340361cbe9c2b798806f67de1af2081c22880.zip
gitlab-ce-b56340361cbe9c2b798806f67de1af2081c22880.tar.gz
gitlab-ctl: allow restart to take params for service names
Diffstat (limited to 'gitlab-ctl.sh')
-rwxr-xr-xgitlab-ctl.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab-ctl.sh b/gitlab-ctl.sh
index 9462a2f..ad54c18 100755
--- a/gitlab-ctl.sh
+++ b/gitlab-ctl.sh
@@ -64,7 +64,7 @@ posttrans() {
# http://docs.gitlab.com/ce/administration/restart_gitlab.html#installations-from-source
restart() {
- local service services="gitlab-sidekiq gitlab-unicorn gitlab-workhorse"
+ local service services=${@-"gitlab-sidekiq gitlab-unicorn gitlab-workhorse"}
for service in $services; do
service $service stop