From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: "Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
"linux-rdma
(linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] ibacm: Fixes to ACM package to support distros
Date: Thu, 5 Apr 2012 14:40:38 -0600 [thread overview]
Message-ID: <20120405204038.GA6575@obsidianresearch.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A823734519B048-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
On Thu, Apr 05, 2012 at 07:10:25PM +0000, Hefty, Sean wrote:
> > > +PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> >
> > I'm not very keen on including /usr/local in the search path on system
> To say that I'm not sure what autotools and the init scripts are
> doing is an understatement... The init script finds ibacm in
> /usr/sbin, but not /usr/local/sbin where it ended up being
> installed. I'm not sure how to fix that.
In this instance you need to have configure variable substitute your
init script as well. You should not manipulate PATH from an init.d
script, and you should use an absolute path to the daemon to avoid
contamination from the invoking user's environment.
So you want:
%prefix$/bin/IBACM_BIN -foo
(use start-stop-daemon if appropriate for RHEL, I'm not sure what
their conventions are...)
There might be a better choice than %prefix% for this, check the
config.sub output for a better substitution.
Also, these days it would be very forward-thinking of you to
contemplate how this will work in a systemd world. Make sure it can be
demand started, have a daemon that has a running mode that is systemd
compatible, etc. I think Doug was saying that the latest FC has IB and
systemd together?
Jason
--
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:[~2012-04-05 20:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 19:10 [PATCH] ibacm: Fixes to ACM package to support distros Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A823734519A805-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-04-05 16:10 ` Doug Ledford
[not found] ` <4F7DC3F8.2030406-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-05 19:10 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A823734519B048-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-04-05 19:15 ` Bart Van Assche
2012-04-05 19:21 ` Doug Ledford
[not found] ` <4F7DF0D4.5040101-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-06 4:43 ` Hefty, Sean
2012-04-05 20:40 ` Jason Gunthorpe [this message]
[not found] ` <20120405204038.GA6575-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-04-06 4:35 ` Hefty, Sean
2012-04-17 16:33 ` Doug Ledford
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=20120405204038.GA6575@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox