diff options
author | Elan Ruusamäe | 2017-04-18 20:03:53 (GMT) |
---|---|---|
committer | Elan Ruusamäe | 2017-04-18 20:03:53 (GMT) |
commit | b56340361cbe9c2b798806f67de1af2081c22880 (patch) | |
tree | f290d49acdec4d41fa8fa3145743f70f7fa347c6 /gitlab-ctl.sh | |
parent | af3270663e281963563d818c3bd3e4581d8081a8 (diff) | |
download | gitlab-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-x | gitlab-ctl.sh | 2 |
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 |