- 论坛徽章:
- 0
|
因为CentOS7版的haproxy reload时,失败时无法显示错误,所以需要使用centos6的sysv init script。
在CentOS7.1时,是没有问题的。但是在CentOS7.2(1511)上,进行reload,就失败了。。reload脚本执行是成功的,但是不知道为什么会被kill掉。
[root@localhost x86_64]# service haproxy restart
Restarting haproxy (via systemctl): [ OK ]
[root@localhost x86_64]#
[root@localhost x86_64]#
[root@localhost x86_64]#
[root@localhost x86_64]# service haproxy status
● haproxy.service - SYSV: HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications
Loaded: loaded (/etc/rc.d/init.d/haproxy)
Active: active (running) since Sun 2016-06-05 10:38:20 EDT; 2s ago
Docs: man:systemd-sysv-generator(
Process: 3550 ExecStop=/etc/rc.d/init.d/haproxy stop (code=exited, status=0/SUCCESS)
Process: 3544 ExecReload=/etc/rc.d/init.d/haproxy reload (code=exited, status=0/SUCCESS)
Process: 3617 ExecStart=/etc/rc.d/init.d/haproxy start (code=exited, status=0/SUCCESS)
Main PID: 3622 (haproxy)
CGroup: /system.slice/haproxy.service
└─3622 /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
Jun 05 10:38:20 localhost.localdomain systemd[1]: Starting SYSV: HAProxy is a free, very fast and reliable solution offering high availability, load balanci...ations...
Jun 05 10:38:20 localhost.localdomain haproxy[3617]: Starting haproxy: [ OK ]
Jun 05 10:38:20 localhost.localdomain systemd[1]: Started SYSV: HAProxy is a free, very fast and reliable solution offering high availability, load balancin...ications.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost x86_64]#
[root@localhost x86_64]#
[root@localhost x86_64]# service haproxy reload
Reloading haproxy configuration (via systemctl): [ OK ]
[root@localhost x86_64]#
[root@localhost x86_64]#
[root@localhost x86_64]# service haproxy status
● haproxy.service - SYSV: HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications
Loaded: loaded (/etc/rc.d/init.d/haproxy)
Active: failed (Result: signal) since Sun 2016-06-05 10:38:24 EDT; 2s ago
Docs: man:systemd-sysv-generator(
Process: 3671 ExecStop=/etc/rc.d/init.d/haproxy stop (code=exited, status=0/SUCCESS)
Process: 3665 ExecReload=/etc/rc.d/init.d/haproxy reload (code=exited, status=0/SUCCESS)
Process: 3617 ExecStart=/etc/rc.d/init.d/haproxy start (code=exited, status=0/SUCCESS)
Main PID: 3670 (code=killed, signal=KILL)
Jun 05 10:38:20 localhost.localdomain systemd[1]: Starting SYSV: HAProxy is a free, very fast and reliable solution offering high availability, load balanci...ations...
Jun 05 10:38:20 localhost.localdomain haproxy[3617]: Starting haproxy: [ OK ]
Jun 05 10:38:20 localhost.localdomain systemd[1]: Started SYSV: HAProxy is a free, very fast and reliable solution offering high availability, load balancin...ications.
Jun 05 10:38:24 localhost.localdomain haproxy[3665]: Reloading haproxy:
Jun 05 10:38:24 localhost.localdomain systemd[1]: Reloaded SYSV: HAProxy is a free, very fast and reliable solution offering high availability, load balanci...ications.
Jun 05 10:38:24 localhost.localdomain systemd[1]: haproxy.service: main process exited, code=killed, status=9/KILL
Jun 05 10:38:24 localhost.localdomain haproxy[3671]: Stopping haproxy: [FAILED]
Jun 05 10:38:24 localhost.localdomain systemd[1]: Unit haproxy.service entered failed state.
Jun 05 10:38:24 localhost.localdomain systemd[1]: haproxy.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost x86_64]#
|
|