public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: iwpmd init script does not work on Debian
Date: Wed, 10 May 2017 09:26:21 -0600	[thread overview]
Message-ID: <20170510152621.GA1007@obsidianresearch.com> (raw)
In-Reply-To: <1494420825.3739.4.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>

On Wed, May 10, 2017 at 02:53:45PM +0200, Benjamin Drung wrote:
> Hi,
> 
> the iwpmd init script specifies:
> 
> if [ -f "/etc/redhat-release" ]; then
>         . /etc/rc.d/init.d/functions
>         STARTD=daemon
>         STOPD=killproc
>         STATUSD=status
>         GETPID=/sbin/pidof
> 
> elif [ -f "/etc/SuSE-release" ]; then
>         . /lib/lsb/init-functions
>         STARTD=start_daemon
>         STOPD=killproc
>         STATUSD=/sbin/checkproc
>         GETPID=/sbin/pidofproc
> fi
> 
> This does not work on Debian/Ubuntu. You can source /lib/lsb/init-
> functions which provides the functions start_daemon, pidofproc,
> killproc, status_of_proc.

Maybe just drop the elif test?

RH does not have the lsb/init-functions in a minimal install.

I guess it needs a lsb-base dependency too?

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

      parent reply	other threads:[~2017-05-10 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-10 12:53 iwpmd init script does not work on Debian Benjamin Drung
     [not found] ` <1494420825.3739.4.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-05-10 15:26   ` Jason Gunthorpe [this message]

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=20170510152621.GA1007@obsidianresearch.com \
    --to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
    --cc=benjamin.drung-EIkl63zCoXaH+58JC4qpiA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox