fix failed to parse pid from pid-file

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 1ded7e358963a6c2b1a2604d814a2bfad9f3d1e1)
This commit is contained in:
cherry530 2021-11-08 16:07:51 +08:00 committed by openeuler-sync-bot
parent 02f3ebdc7e
commit 77212fcb90
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@
Name: openwsman Name: openwsman
Version: 2.6.5 Version: 2.6.5
Release: 14 Release: 15
Summary: Opensource Implementation of WS-Management Summary: Opensource Implementation of WS-Management
License: BSD License: BSD
URL: http://www.openwsman.org/ URL: http://www.openwsman.org/
@ -260,6 +260,9 @@ rm -f /var/log/wsmand.log
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Mon Nov 08 2021 xu_ping <xuping33@huawei.com> - 2.6.5-15
- fix failed to parse pid from pid-file
* Fri Aug 21 2020 lunankun <lunankun@huawei.com> - 2.6.5-14 * Fri Aug 21 2020 lunankun <lunankun@huawei.com> - 2.6.5-14
- Type:bugfix - Type:bugfix
- Id:NA - Id:NA

View File

@ -5,6 +5,7 @@ After=syslog.target
[Service] [Service]
Type=forking Type=forking
ExecStart=/usr/sbin/openwsmand -S ExecStart=/usr/sbin/openwsmand -S
ExecStartPost=/usr/bin/sleep 0.1
ExecStartPre=/etc/openwsman/owsmantestcert.sh ExecStartPre=/etc/openwsman/owsmantestcert.sh
PIDFile=/var/run/wsmand.pid PIDFile=/var/run/wsmand.pid