From 5ceef89be320c6b8d75d720c30527adb1e0a0508 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Wed, 9 Nov 2022 11:42:25 +0800 Subject: [PATCH] fix pid file location and cannot open problem --- openwsman.spec | 5 ++++- openwsmand.service | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/openwsman.spec b/openwsman.spec index e1ea767..f810936 100644 --- a/openwsman.spec +++ b/openwsman.spec @@ -3,7 +3,7 @@ Name: openwsman Version: 2.6.5 -Release: 14 +Release: 15 Summary: Opensource Implementation of WS-Management License: BSD URL: http://www.openwsman.org/ @@ -259,6 +259,9 @@ rm -f /var/log/wsmand.log %{_mandir}/man8/* %changelog +* Wed Nov 9 2022 caodongxia - 2.6.5-15 +- fix pid file location and can not open problem + * Tue Oct 27 2020 Ge Wang - 2.6.5-14 - remove useless buildrequires of python2 and python2-devel diff --git a/openwsmand.service b/openwsmand.service index e10c75d..12a67bb 100644 --- a/openwsmand.service +++ b/openwsmand.service @@ -6,7 +6,8 @@ After=syslog.target Type=forking ExecStart=/usr/sbin/openwsmand -S ExecStartPre=/etc/openwsman/owsmantestcert.sh -PIDFile=/var/run/wsmand.pid +ExecStartPost=/usr/bin/sleep 0.1 +PIDFile=/run/wsmand.pid [Install] WantedBy=multi-user.target -- Gitee