修复停止服务后查看状态显示失败问题

This commit is contained in:
zhangshaoning 2021-04-01 10:56:44 +08:00
parent 2f13bc04e0
commit c1acdd63db
2 changed files with 6 additions and 2 deletions

View File

@ -13,6 +13,7 @@ ExecStart=/opt/zookeeper/bin/zkServer.sh start /opt/zookeeper/conf/zoo.cfg
ExecStop=/opt/zookeeper/bin/zkServer.sh stop /opt/zookeeper/conf/zoo.cfg
ExecReload=/opt/zookeeper/bin/zkServer.sh restart /opt/zookeeper/conf/zoo.cfg
Restart=on-failure
SuccessExitStatus=143
[Install]
WantedBy=default.target
WantedBy=default.target

View File

@ -1,5 +1,5 @@
%define rel_ver 3.6.2
%define pkg_ver 2.0
%define pkg_ver 2.1
%define _prefix /opt/zookeeper
Summary: High-performance coordination service for distributed applications.
@ -72,6 +72,9 @@ exit 0
%systemd_postun_with_restart zookeeper.service
%changelog
* Thu Apr 1 2021 zhangshaoning <zhangshaoning@uniontech.com> - 2.1
- Repair status failure after stopping service
* Thu Mar 25 2021 baizhonggui <baizhonggui@huawei.com> - 2.0
- Delete %{dist} in Release