[ofa-general] RE: [PATCH] opensm: rename OpenSM startup script to opensmd
Yevgeny Kliteynik
kliteyn at mellanox.co.il
Sun Feb 24 06:21:31 PST 2008
Looks good, thanks.
Regards,
Yevgeny Kliteynik
Mellanox Technologies LTD
Tel: +972-4-909-7200 ext: 394
Fax: +972-4-959-3245
P.O. Box 586 Yokneam 20692 ISRAEL
-----Original Message-----
From: Sasha Khapyorsky [mailto:sashak at voltaire.com]
Sent: Sunday, February 24, 2008 4:16 PM
To: OpenIB
Cc: Hal Rosenstock; Yevgeny Kliteynik; Ira Weiny; Vladimir Sokolovsky;
Tziporet Koren
Subject: [PATCH] opensm: rename OpenSM startup script to opensmd
Rename OpenSM startup script /etc/init.d/opensm -> /etc/init.d/opensmd.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/Makefile.am | 4 ++--
opensm/opensm.spec.in | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opensm/Makefile.am b/opensm/Makefile.am index
4474493..7e1d95d 100644
--- a/opensm/Makefile.am
+++ b/opensm/Makefile.am
@@ -17,8 +17,8 @@ else
echo "define osm_build_type \"free\"" >
$(DESTDIR)/$(includedir)/infiniband/opensm/osm_build_id.h
endif
$(top_srcdir)/config/install-sh -m 755 -d
$(DESTDIR)/$(sysconfdir)/init.d
- cp $(top_srcdir)/scripts/opensm.init
$(DESTDIR)/$(sysconfdir)/init.d/opensm
- chmod 755 $(DESTDIR)/$(sysconfdir)/init.d/opensm
+ cp $(top_srcdir)/scripts/opensm.init
$(DESTDIR)/$(sysconfdir)/init.d/opensmd
+ chmod 755 $(DESTDIR)/$(sysconfdir)/init.d/opensmd
man_MANS = man/opensm.8 man/osmtest.8
diff --git a/opensm/opensm.spec.in b/opensm/opensm.spec.in index
ec8bf58..6de6333 100644
--- a/opensm/opensm.spec.in
+++ b/opensm/opensm.spec.in
@@ -95,7 +95,7 @@ else
REDHAT=""
fi
mkdir -p $etc/{init.d,ofa,logrotate.d}
-install -m 755 scripts/${REDHAT}opensm.init $etc/init.d/opensm
+install -m 755 scripts/${REDHAT}opensm.init $etc/init.d/opensmd
install -m 644 scripts/opensm.conf $etc/ofa/opensm.conf install -m 644
scripts/opensm.logrotate $etc/logrotate.d/opensm install -m 755
scripts/sldd.sh $RPM_BUILD_ROOT%{_sbindir}/sldd.sh
@@ -105,15 +105,15 @@ rm -rf $RPM_BUILD_ROOT
%post
if [ $1 = 1 ]; then
- /sbin/chkconfig --add opensm
+ /sbin/chkconfig --add opensmd
else
- /sbin/service opensm condrestart
+ /sbin/service opensmd condrestart
fi
%preun
if [ $1 = 0 ]; then
- /sbin/service opensm stop
- /sbin/chkconfig --del opensm
+ /sbin/service opensmd stop
+ /sbin/chkconfig --del opensmd
rm -f /var/cache/opensm/*
fi
@@ -126,7 +126,7 @@ fi
%{_sbindir}/osmtest
%{_mandir}/man8/*
%doc AUTHORS COPYING README
-%{_sysconfdir}/init.d/opensm
+%{_sysconfdir}/init.d/opensmd
%{_sbindir}/sldd.sh
%config(noreplace) %{_sysconfdir}/ofa/opensm.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/opensm
--
1.5.4.rc2.60.gb2e62
More information about the general
mailing list