iscsid.service ExecStopPost to ExecStartPost to fix systemd warning
Move change of iscsid.service to one patch which number is 0003. So changes about iscsid.service in patch which number is 0004 is removed and patch which number is 0019 is removed. Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
This commit is contained in:
parent
164cef6e25
commit
4070670b14
@ -8,14 +8,14 @@ add sleep for service
|
||||
Signed-off-by: pengyeqing <pengyeqing@huawei.com>
|
||||
Signed-off-by: wuguanghao <wuguanghao3@huawei.com>
|
||||
---
|
||||
etc/systemd/iscsid.service | 15 ++++++---------
|
||||
1 file changed, 6 insertions(+), 9 deletions(-)
|
||||
etc/systemd/iscsid.service | 17 ++++++---------
|
||||
1 file changed, 8 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/etc/systemd/iscsid.service b/etc/systemd/iscsid.service
|
||||
index 4fef168..f3f8c65 100644
|
||||
--- a/etc/systemd/iscsid.service
|
||||
+++ b/etc/systemd/iscsid.service
|
||||
@@ -1,17 +1,14 @@
|
||||
@@ -1,17 +1,16 @@
|
||||
[Unit]
|
||||
Description=Open-iSCSI
|
||||
Documentation=man:iscsid(8) man:iscsiuio(8) man:iscsiadm(8)
|
||||
@ -31,10 +31,12 @@ index 4fef168..f3f8c65 100644
|
||||
-KillMode=mixed
|
||||
-Restart=on-failure
|
||||
+Type=forking
|
||||
+PIDFile=/var/run/iscsid.pid
|
||||
+PIDFile=/run/iscsid.pid
|
||||
+ExecStart=/sbin/iscsid
|
||||
+ExecStopPost=/usr/bin/sleep 1
|
||||
+ExecStartPost=/usr/bin/sleep 1
|
||||
+ExecStop=/sbin/iscsiadm -k 0 2
|
||||
+Restart=always
|
||||
+RestartSec=2s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@ -5,23 +5,9 @@ Subject: [PATCH] iscsi-initiator-utils: not send stop message if iscsid absent
|
||||
|
||||
Signed-off-by: pengyeqing <pengyeqing@huawei.com>
|
||||
---
|
||||
etc/systemd/iscsid.service | 2 ++
|
||||
usr/iscsiadm.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++
|
||||
2 files changed, 73 insertions(+)
|
||||
1 files changed, 71 insertions(+)
|
||||
|
||||
diff --git a/etc/systemd/iscsid.service b/etc/systemd/iscsid.service
|
||||
index f3f8c65..2cce190 100644
|
||||
--- a/etc/systemd/iscsid.service
|
||||
+++ b/etc/systemd/iscsid.service
|
||||
@@ -9,6 +9,8 @@ PIDFile=/var/run/iscsid.pid
|
||||
ExecStart=/sbin/iscsid
|
||||
ExecStopPost=/usr/bin/sleep 1
|
||||
ExecStop=/sbin/iscsiadm -k 0 2
|
||||
+Restart=always
|
||||
+RestartSec=2s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
|
||||
index f2bd721..b386abe 100644
|
||||
--- a/usr/iscsiadm.c
|
||||
|
||||
@ -1,29 +0,0 @@
|
||||
From dafbd11b65b2bbceed1e9b72d6213ddea73a0a34 Mon Sep 17 00:00:00 2001
|
||||
From: Wenchao Hao <haowenchao@huawei.com>
|
||||
Date: Sat, 12 Dec 2020 17:09:34 +0800
|
||||
Subject: [PATCH] iscsid: Change iscsid service PIDFile to /run/iscsid.ipd
|
||||
|
||||
The pid file has be changed from /var/run/iscsid.pid to
|
||||
/run/iscsid.pid in code, here perform a sync.
|
||||
|
||||
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
|
||||
---
|
||||
etc/systemd/iscsid.service | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/etc/systemd/iscsid.service b/etc/systemd/iscsid.service
|
||||
index 828877f..be3ae9e 100644
|
||||
--- a/etc/systemd/iscsid.service
|
||||
+++ b/etc/systemd/iscsid.service
|
||||
@@ -6,7 +6,7 @@ DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
-PIDFile=/var/run/iscsid.pid
|
||||
+PIDFile=/run/iscsid.pid
|
||||
ExecStart=/sbin/iscsid
|
||||
ExecStopPost=/usr/bin/sleep 1
|
||||
ExecStop=/sbin/iscsiadm -k 0 2
|
||||
--
|
||||
2.29.2.435.g72ffeb997e
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
Name: open-iscsi
|
||||
Version: 2.1.1
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: ISCSI software initiator daemon and utility programs
|
||||
License: GPLv2+ and BSD
|
||||
URL: http://www.open-iscsi.org
|
||||
@ -27,7 +27,6 @@ Patch15: 0015-iscsi-Add-break-to-while-loop.patch
|
||||
Patch16: 0016-iscsi-fix-fd-leak.patch
|
||||
Patch17: 0017-Fix-devel-without-node-header-files.patch
|
||||
Patch18: 0018-resolve-compilation-errors.patch
|
||||
Patch19: 0019-iscsid-Change-iscsid-service-PIDFile-to-run-iscsid.i.patch
|
||||
Patch20: 0020-check-for-header-length-underflow-during-checksum-ca.patch
|
||||
Patch21: 0021-check-for-u8-overflow-when-processing-TCP-options.patch
|
||||
Patch22: 0022-check-for-TCP-urgent-pointer-past-end-of-frame.patch
|
||||
@ -165,7 +164,10 @@ fi
|
||||
%{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
* Thu Apr 8 2021 haowenchao <haowenchao@huawei.com> - 2.1.3-6
|
||||
* Mon May 17 2021 haowenchao <haowenchao@huawei.com> - 2.1.1-7
|
||||
- Change iscsid.service ExecStopPost to ExecStartPost to fix systemd warning
|
||||
|
||||
* Thu Apr 8 2021 haowenchao <haowenchao@huawei.com> - 2.1.1-6
|
||||
- Fix file residual files after open-iscsi removed
|
||||
|
||||
* Tue Mon 22 2021 haowenchao <haowenchao@huawei.com> - 2.1.1-5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user