From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] opensm/configure.in: Remove Default-Start from opensmd init script
Date: Wed, 30 Jan 2013 14:35:01 +0200 [thread overview]
Message-ID: <20130130123501.GD2961@calypso.mtl.com> (raw)
In-Reply-To: <5108E0F6.3060602-HInyCGIudOg@public.gmane.org>
On 09:59 Wed 30 Jan , Bart Van Assche wrote:
> On 01/29/13 18:18, Alex Netes wrote:
> >During opensm RPM packaging, `chkconfig --add opensmd` is called.
> >`chkconfig --add` creates the appropriate entry as specified by the
> >default values in the init script. Having opensmd run by default on boot
> >isn't desired.
> >
> >Signed-off-by: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> >---
> > configure.in | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
> >
> >diff --git a/configure.in b/configure.in
> >index 4515ae2..f798be2 100644
> >--- a/configure.in
> >+++ b/configure.in
> >@@ -18,12 +18,13 @@ AC_ARG_WITH([rdma_service],
> > AC_SUBST(RDMA_SERVICE, ${with_rdma_service:-${default_rdma_service}})
> >
> > if { rpm -q sles-release || rpm -q openSUSE-release; } >/dev/null 2>&1; then
> >- default_start="2 3 5"
> > default_stop="0 1 4 6"
> > else
> >- default_start="2 3 4 5"
> > default_stop="0 1 6"
> > fi
> >+
> >+default_start="null"
> >+
> > AC_SUBST(DEFAULT_START, $default_start)
> > AC_SUBST(DEFAULT_STOP, $default_stop)
>
> Sorry but this patch doesn't make sense to me. This patch will
> prevent anyone to enable opensm to run during boot via chkconfig.
> How about replacing the above by the (untested) patch below ?
>
> iff --git a/opensm.spec.in b/opensm.spec.in
> index 6ae525b..2325b70 100644
> --- a/opensm.spec.in
> +++ b/opensm.spec.in
> @@ -107,13 +107,6 @@ rm -rf $RPM_BUILD_ROOT
>
> %post
> if [ $1 = 1 ]; then
> - if [ -e /sbin/chkconfig ]; then
> - /sbin/chkconfig --add opensmd
> - elif [ -e /usr/sbin/update-rc.d ]; then
> - /usr/sbin/update-rc.d opensmd defaults
> - else
> - /usr/lib/lsb/install_initd /etc/init.d/opensmd
> - fi
> if type systemctl >/dev/null 2>&1; then
> systemctl --system daemon-reload
> fi
>
> Bart.
>
Thanks. I was sure that you need to add the service prior to be able
to enable/disable it. Your suggestion works on RHEL/SUSE. I'll also test in on
Debian.
--Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-01-30 12:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 17:18 [PATCH] opensm/configure.in: Remove Default-Start from opensmd init script Alex Netes
[not found] ` <20130129171850.GB2961-iQai9MGU/dze+A/uUDamNg@public.gmane.org>
2013-01-30 8:59 ` Bart Van Assche
[not found] ` <5108E0F6.3060602-HInyCGIudOg@public.gmane.org>
2013-01-30 12:35 ` Alex Netes [this message]
2013-01-30 15:43 ` Doug Ledford
[not found] ` <51093F8E.10905-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-01-30 16:00 ` Bart Van Assche
[not found] ` <51094393.1060102-HInyCGIudOg@public.gmane.org>
2013-01-30 17:48 ` Doug Ledford
[not found] ` <51095CD5.80503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-01-30 19:12 ` Bart Van Assche
[not found] ` <51097080.9000402-HInyCGIudOg@public.gmane.org>
2013-01-30 19:24 ` Doug Ledford
[not found] ` <5109737F.70101-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-01-31 7:21 ` Alex Netes
[not found] ` <20130131072100.GU2961-iQai9MGU/dze+A/uUDamNg@public.gmane.org>
2013-01-31 14:20 ` Doug Ledford
[not found] ` <510A7DAF.60802-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-02-04 15:36 ` Alex Netes
[not found] ` <20130204153631.GC13151-iQai9MGU/dze+A/uUDamNg@public.gmane.org>
2013-02-04 16:05 ` Bart Van Assche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130130123501.GD2961@calypso.mtl.com \
--to=alexne-vpraknaxozvwk0htik3j/w@public.gmane.org \
--cc=bvanassche-HInyCGIudOg@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.