Remove -B option to opensm on start

We need opensm to not go into the background and act like a daemon
for our new launch script, so don't have it do so.

Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Doug Ledford 2013-03-25 17:05:13 -04:00
parent 39a5c52144
commit ac2064a1ab
2 changed files with 7 additions and 4 deletions

View File

@ -31,14 +31,14 @@ if [ -n "$GUIDS" ]; then
SUBNET_COUNT=0
for guid in $GUIDS; do
SUBNET_PREFIX=`printf "0xfe800000000000%02d" $SUBNET_COUNT`
(while true; do $prog -B $prio -g $guid --subnet_prefix $SUBNET_PREFIX; sleep 30; done) &
(while true; do $prog $prio -g $guid --subnet_prefix $SUBNET_PREFIX; sleep 30; done) &
let SUBNET_COUNT++
done
elif [ -n "$CONFIGS" ]; then
for config in $CONFIGS; do
(while true; do $prog -B $prio -F $config; sleep 30; done) &
(while true; do $prog $prio -F $config; sleep 30; done) &
done
else
(while true; do $prog -B $prio; sleep 30; done) &
(while true; do $prog $prio; sleep 30; done) &
fi
exit 0

View File

@ -1,6 +1,6 @@
Name: opensm
Version: 3.3.15
Release: 5%{?dist}
Release: 6%{?dist}
Summary: OpenIB InfiniBand Subnet Manager and management utilities
Group: System Environment/Daemons
License: GPLv2 or BSD
@ -125,6 +125,9 @@ fi
%{_libdir}/lib*.a
%changelog
* Mon Mar 25 2013 Doug Ledford <dledford@redhat.com> - 3.3.15-6
- Oops, forgot to remove the -B option to opensm when starting it
* Mon Mar 25 2013 Doug Ledford <dledford@redhat.com> - 3.3.15-5
- Drop the old sysv init script
- Fix opensm-launch to restart opensm in a loop. This works around the