Skip to contentSkip to conversation

iwpmd init script does not work on Debian

DISCUSSION Benjamin Drung 2 participants 2 messages May 10, 2017 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

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.

Signature · 19 lines
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: [email protected]
Web: https://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Achim Weiss.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 19 lines · Benjamin Drung

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

Quoted 3 lines

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html