- 论坛徽章:
- 0
|
好,不错,先前的原因还有一个可能我给忽略了。就是配置文件中没给httpd脚本加启动参数
以下还是摘自HA官网资料
Note: httpd and smb are the name of startup scripts for Apache and Samba, respectively. Heartbeat will look for startup scripts of the same name in the following paths:
/etc/ha.d/resource.d
/etc/init.d
These scripts must start services via "scriptname start" and stop them via "scriptname stop". So you can use any services as long as they conform to the above standard.
Should you need to pass arguments to a custom script, the format would be:
scriptname::argument
So, if we added a service "maid" which needed the argument "vacuum", our haresources line would modify to the following:linuxha1 192.168.85.3 httpd smb maid::vacuum
按你的先前的情况,httpd不能自动启动,但可以通过service httpd start启动,所以考虑可以这样配置解决问题。但还是要看
/etc/inin.d/目录下有没有httpd这个文件,有的话这样应该就可以。
linuxha1 192.168.85.3 httpd::start |
|