Ubuntuにランレベルを追加する

Ubuntuにランレベルを追加する

私のPostgresサービスはランレベル2,3,4,5で開始し、0,1,6で停止したいと思います。

だから、次のコマンドを実行しました。

$ sudo update-rc.d postgresql start 30 2 3 4 5 . stop 30 0 1 6 .

インスタンスを停止して再起動すると、postgres サービスが起動するのがわかります。ただし、次のコマンドを実行するとき:

$ls -C /etc/rc*.d|more
/etc/rc0.d:
K10unattended-upgrades  K20screen-cleanup  README           S40umountfs
K15landscape-client     K20td-agent        S20sendsigs      S59cryptdisks-early
K20ds_agent             K20zabbix-agent    S30urandom       S60umountroot
K20rsync                K38open-vm-tools   S31umountnfs.sh  S90halt

/etc/rc1.d:
K00postgresql        K20screen-cleanup  K77ntp        S70pppd-dns
K15landscape-client  K20td-agent        README        S90single
K20ds_agent          K20zabbix-agent    S30killprocs
K20rsync             K38open-vm-tools   S70dns-clean

/etc/rc2.d:
README         S20screen-cleanup  S38open-vm-tools     S99grub-common
S00postgresql  S20td-agent        S45landscape-client  S99ondemand
S20ds_agent    S20zabbix-agent    S70dns-clean         S99rc.local
S20rsync       S23ntp             S70pppd-dns

/etc/rc3.d:
README         S20screen-cleanup  S38open-vm-tools     S99grub-common
S00postgresql  S20td-agent        S45landscape-client  S99ondemand
S20ds_agent    S20zabbix-agent    S70dns-clean         S99rc.local
S20rsync       S23ntp             S70pppd-dns

/etc/rc4.d:
README         S20screen-cleanup  S38open-vm-tools     S99grub-common
S00postgresql  S20td-agent        S45landscape-client  S99ondemand
S20ds_agent    S20zabbix-agent    S70dns-clean         S99rc.local
S20rsync       S23ntp             S70pppd-dns

/etc/rc5.d:
README         S20screen-cleanup  S38open-vm-tools     S99grub-common
S00postgresql  S20td-agent        S45landscape-client  S99ondemand
S20ds_agent    S20zabbix-agent    S70dns-clean         S99rc.local
S20rsync       S23ntp             S70pppd-dns

/etc/rc6.d:
K00postgresql           K20screen-cleanup  S20sendsigs          S60umountroot
K10unattended-upgrades  K20td-agent        S30urandom           S90reboot
K15landscape-client     K20zabbix-agent    S31umountnfs.sh
K20ds_agent             K38open-vm-tools   S40umountfs
K20rsync                README             S59cryptdisks-early

K*なぜ入力しないのかわかりません/etc/rc0.d。誰かが私が理解するのを助けることができますか?

Ubuntu 14.04を使用しています。

ベストアンサー1

おすすめ記事