mcst-linux-kernel/patches-2024.06.26/opensm-3.3.20/0002-Refinement-of-start-se...

26 lines
717 B
Diff

Link:
Subject: refinement of start service function
Tags: common
--- a/scripts/opensm.init.in 2021-07-01 15:40:09.242124082 +0300
+++ b/scripts/opensm.init.in 2021-07-01 15:43:30.893157144 +0300
@@ -63,6 +63,9 @@
success() { rc_status -v; }
fi
+success() { log_success_msg; }
+failure() { log_failure_msg; }
+
CONFIG=@sysconfdir@/sysconfig/opensm
if [[ -s $CONFIG ]]; then
. $CONFIG
@@ -79,7 +82,7 @@
return 1
fi
echo -n "Starting opensm: "
- @sbindir@/opensm --daemon --pidfile $pidfile $OPTIONS > /dev/null
+ start-stop-daemon --start --quiet --pidfile $pidfile --exec @sbindir@/opensm -- $OPTIONS > /dev/null 2>&1
RETVAL=$?
if [[ $RETVAL -eq 0 ]]; then
success