Repair status failure after stopping service

(cherry picked from commit cd90da88de354ec131fedc64f8ce783b60546d7a)
This commit is contained in:
lingsheng 2021-05-28 16:12:31 +08:00 committed by openeuler-sync-bot
parent 5bf634423b
commit e513ecba4a
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.1
%define pkg_ver 2.0
%define pkg_ver 2.1
%define _prefix /opt/zookeeper
Summary: High-performance coordination service for distributed applications.
@ -71,6 +71,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