Using echo -n in opensafd causes delay write to log in a systemd
environment causing unconsistent order of the logs. "Starting opensaf"
will end up after "Startup finished" in the system log.
---
src/nid/opensafd.in | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/nid/opensafd.in b/src/nid/opensafd.in
index 428b222c2..023b4f614 100644
--- a/src/nid/opensafd.in
+++ b/src/nid/opensafd.in
@@ -249,12 +249,11 @@ start() {
check_transport
- logger -t $osafprog "Starting OpenSAF Services($osafversion -
$osafcshash) (Using $MDS_TRANSPORT)"
+ logger -s -t $osafprog "Starting OpenSAF Services($osafversion -
$osafcshash) (Using $MDS_TRANSPORT)"
# Comment/Uncomment if you want cores disabled/enabled
#enable_coredump
- echo -n "Starting OpenSAF Services (Using $MDS_TRANSPORT):"
start_daemon $binary $args
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
@@ -282,9 +281,8 @@ stop() {
return 1
fi
- logger -t $osafprog "Stopping OpenSAF Services"
+ logger -s -t $osafprog "Stopping OpenSAF Services"
amfpid=`pidofproc -p $amfnd_pid $amfnd_bin`
- echo -n "Stopping OpenSAF Services: "
if [ -n "$amfpid" ]; then
kill $amfpid
timeout=$TERMTIMEOUT
--
2.13.0
------------------------------------------------------------------------------
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