소스 검색

gitlab-ctl: add page (#4758)

Pierre Rudloff 4 년 전
부모
커밋
c1c162faee
1개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. 28 0
      pages/common/gitlab-ctl.md

+ 28 - 0
pages/common/gitlab-ctl.md

@@ -0,0 +1,28 @@
+# gitlab-ctl
+
+> CLI tool for managing the GitLab omnibus.
+> More information: <https://docs.gitlab.com/omnibus/maintenance/>.
+
+- Display the status of every service:
+
+`sudo gitlab-ctl status`
+
+- Display the status of a specific service:
+
+`sudo gitlab-ctl status {{nginx}}`
+
+- Restart every service:
+
+`sudo gitlab-ctl restart`
+
+- Restart a specific service:
+
+`sudo gitlab-ctl restart {{nginx}}`
+
+- Display the logs of every service and keep reading until `Ctrl + C` is pressed:
+
+`sudo gitlab-ctl tail`
+
+- Display the logs of a specific service:
+
+`sudo gitlab-ctl tail {{nginx}}`