우분투에 런레벨 추가

우분투에 런레벨 추가

내 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. 누군가 내가 이해하도록 도와줄 수 있나요?

우분투 14.04를 사용하고 있습니다.

관련 정보