即时build立一个suse服务器。 我有多个副本的postgres上运行。 我有三个实例并行运行就好,问题是当我试图让它自动启动,我得到这个
chkconfig -a postgresql5433 insserv: script postgresql5433: service postgresql already provided! insserv: exiting now! /sbin/insserv failed, exit code 1 postgresql5433 0:off 1:off 2:off 3:off 4:off 5:off 6:off
所以我的第一个postgres实例正在运行,并在启动时自动启动,但其他两个实例不是。
我该如何解决?
谢谢
这是因为INIT INFO块用于使用chkconfig命令服务:
例如:
### BEGIN INIT INFO # Provides: sshd # Required-Start: $local_fs $network $syslog # Required-Stop: $local_fs $syslog # Should-Start: $syslog # Should-Stop: $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start up the OpenSSH server daemon # Description: SSH is a protocol for secure remote shell access. # This service starts up the OpenSSH server daemon. ### END INIT INFO
您可能必须将Provides:行更改为新的唯一值。