fix pid file location and cannot open problem

(cherry picked from commit 5ceef89be320c6b8d75d720c30527adb1e0a0508)
This commit is contained in:
caodongxia 2022-11-09 11:42:25 +08:00 committed by openeuler-sync-bot
parent 0b75bdb324
commit 5db50ff39e
2 changed files with 6 additions and 2 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/
@ -259,6 +259,9 @@ rm -f /var/log/wsmand.log
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Wed Nov 9 2022 caodongxia <caodongxia@h-partners.com> - 2.6.5-15
- fix pid file location and can not open problem
* Tue Oct 27 2020 Ge Wang <wangge20@huawei.com> - 2.6.5-14 * Tue Oct 27 2020 Ge Wang <wangge20@huawei.com> - 2.6.5-14
- remove useless buildrequires of python2 and python2-devel - remove useless buildrequires of python2 and python2-devel

View File

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