Adicionando níveis de execução no ubuntu

1

Eu quero que meu serviço postgres comece nos níveis de execução 2,3,4,5 e pare em 0,1,6.

Então, eu corri o seguinte comando

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

Quando eu paro a instância e a inicio de volta, vejo que meu serviço de postgres foi iniciado. No entanto, quando eu executo o seguinte comando:

$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

Não sei por que K* entry não é feito em /etc/rc0.d . Alguém pode me ajudar a entender?

Estou usando o Ubuntu 14.04.

    
por user3288346 15.08.2017 / 03:06

0 respostas