LoginSignup
5
4

More than 5 years have passed since last update.

Gitlab 起動スクリプトについて(仮)

Posted at

あれ、init.d に無い?と思ったので・・・
正確には調査中。

前提

起動スクリプト

結論から言うと、sysvinit ではなくて upstart

init

$ chkconfig --list
auditd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
blk-availability        0:off   1:on    2:on    3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
iptables        0:off   1:off   2:off   3:off   4:off   5:off   6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
rdisc           0:off   1:off   2:off   3:off   4:off   5:off   6:off
restorecond     0:off   1:off   2:off   3:off   4:off   5:off   6:off
rsyslog         0:off   1:off   2:on    3:on    4:on    5:on    6:off
saslauthd       0:off   1:off   2:off   3:off   4:off   5:off   6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
udev-post       0:off   1:on    2:on    3:on    4:on    5:on    6:off

upstart

$ initctl list
gitlab-runsvdir start/running, process 585
rc stop/waiting
tty (/dev/tty3) start/running, process 1025
tty (/dev/tty2) start/running, process 1023
tty (/dev/tty1) start/running, process 1021
tty (/dev/tty6) start/running, process 1036
tty (/dev/tty5) start/running, process 1032
tty (/dev/tty4) start/running, process 1027
plymouth-shutdown stop/waiting
control-alt-delete stop/waiting
rcS-emergency stop/waiting
kexec-disable stop/waiting
quit-plymouth stop/waiting
rcS stop/waiting
prefdm stop/waiting
init-system-dbus stop/waiting
splash-manager stop/waiting
start-ttys stop/waiting
rcS-sulogin stop/waiting
serial stop/waiting
~$ ll /etc/init/
-rw-r--r--. 1 root root  412 10月 10 23:48 2013 control-alt-delete.conf
-rw-r--r--. 1 root root  317  6月 12 22:54 2014 gitlab-runsvdir.conf
-rw-r--r--. 1 root root  130  6月 25 17:50 2013 init-system-dbus.conf
-rw-r--r--. 1 root root  463 10月 10 23:48 2013 kexec-disable.conf
-rw-r--r--. 1 root root  560 10月 10 23:48 2013 plymouth-shutdown.conf
-rw-r--r--. 1 root root  357 10月 10 23:48 2013 prefdm.conf
-rw-r--r--. 1 root root  505 10月 10 23:48 2013 quit-plymouth.conf
-rw-r--r--. 1 root root  417 10月 10 23:48 2013 rc.conf
-rw-r--r--. 1 root root  430 10月 10 23:48 2013 rcS-emergency.conf
-rw-r--r--. 1 root root  725 10月 10 23:48 2013 rcS-sulogin.conf
-rw-r--r--. 1 root root 1046 10月 10 23:48 2013 rcS.conf
-rw-r--r--. 1 root root 1302 10月 10 23:48 2013 serial.conf
-rw-r--r--. 1 root root  791 10月 10 23:48 2013 splash-manager.conf
-rw-r--r--. 1 root root  473 10月 10 23:48 2013 start-ttys.conf
-rw-r--r--. 1 root root  335 10月 10 23:48 2013 tty.conf

経緯のメモ

  1. OS 再起動直後、ブラウザからアクセスできない
  2. 自動起動してない?と確認
    1. 問題は iptables の方で、ちゃんと起動はしてた。
  3. chkconfig --list しても、gitlab が出ない
  4. 調べてみた結果、upstart に入っている!

今後

  • upstart、initctl について調べる…?
    • systemd じゃないの?と思うけど使われちゃってる以上…('A`)
5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4