启动时Gitlab自动启动

问题描述 投票:3回答:3

首先,我很抱歉我的英语。

我最近在Debian 7.1服务器上安装了GitLab,并且不能在启动时启动。我已经检查了/etc/init.d,但没有Gitlab的脚本。

如何将Gitlab添加到启动中?

我从下载页面使用了Omnibus deb安装程序,如果我运行“gitlab-ctl start”,那就完美了。

问候和谢谢!!

gitlab
3个回答
4
投票

在CentOS 7上,有一个符号链接,

/etc/system的/system/default.target.wants/git lab-run SV Dir.service -> /opt/git lab/embedded/cookbooks/如泥土/files/default/git lab-run SV Dir.service

而gitlab-runsvdir.service的内容就像这样

[Unit] Description=GitLab Runit supervision process

[Service] ExecStart=/opt/gitlab/embedded/bin/runsvdir-start
Restart=always

我希望在Debian 7中有类似的东西。


4
投票
systemctl enable gitlab-runsvdir

如果您的系统使用systemd(RHEL / CentOS 7)而不是init;这更容易:)

 [meebo@server ~]# sudo systemctl enable gitlab-runsvdir
 Created symlink from /etc/systemd/system/basic.target.wants/gitlab-
 runsvdir.service to /usr/lib/systemd/system/gitlab-runsvdir.service.

3
投票

这对我不起作用,并且找到答案很烦人:

有用的是:

在Centos 6.7上:编辑upstart文件/etc/init/gitlab-runsvdir.conf并注释掉该行:

从运行级别开始[2345]

© www.soinside.com 2019 - 2024. All rights reserved.