Ack, review only/Thanks HansN
-----Original Message-----
From: Anders Widell
Sent: den 27 februari 2018 10:54
To: Hans Nordebäck <[email protected]>
Cc: [email protected]; Anders Widell
<[email protected]>
Subject: [PATCH 1/1] nid: Delete generated node_id file when stopping OpenSAF
[#2789]
Always delete the generated file /var/lib/opensaf/node_id when stopping OpenSAF.
Previously, it was only deleted when using TIPC transport and TIPC was managed
by OpenSAF. For consistent behaviour, we shall always clean away generated
files when stopping OpenSAF.
---
src/nid/opensafd.in | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/nid/opensafd.in b/src/nid/opensafd.in index
7fa536761..94888039a 100644
--- a/src/nid/opensafd.in
+++ b/src/nid/opensafd.in
@@ -140,12 +140,7 @@ final_clean() {
clean_shm
- rm -f $lockfile
- rm -f $NIDFIFO
- #remove node_id only if OpenSAF is managing TIPC
- if [ "$MDS_TRANSPORT" = "TIPC" ] && [ $MANAGE_TIPC = "yes" ]; then
- rm -f $pkglocalstatedir/node_id
- fi
+ rm -f "$lockfile" "$NIDFIFO" "$pkglocalstatedir/node_id"
}
generate_nodeid() {
--
2.13.3
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel