Skip to contentSkip to conversation

jewel debian init.d script not working (since commit 65963739cd6815b8008282c8f64cd64365662e60)

DISCUSSION Alexandre DERUMIER 1 participant 2 messages Apr 23, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

since this commit
https://github.com/ceph/ceph/commit/65963739cd6815b8008282c8f64cd64365662e60

if [ -n $CEPH_BIN ] && [ -n $CEPH_ROOT ] && [ -n $CEPH_BUILD_DIR ]; then
#need second look at all variables, especially ETCDIR BINDIR=$CEPH_BIN
SBINDIR=$CEPH_ROOT/src
ETCDIR=$CEPH_BUILD_DIR
LIBEXECDIR=$CEPH_ROOT/src
SYSTEMD_RUN=""
ASSUME_DEV=1
fi

debian init.d script is not working anymore

From where are comming these $CEPH_BIN, $CEPH_ROOT, $CEPH_BUILD_DIR ?

It's always empty when we call init.d script

Quoted 1 line
Quoted 1 line

test -f $LIBEXECDIR/ceph_common.sh || exit 0

#1 lore raw

the bash variables tests need to be quoted

-if [ -n $CEPH_BIN ] && [ -n $CEPH_ROOT ] && [ -n $CEPH_BUILD_DIR ]; then

+if [ -n "$CEPH_BIN" ] && [ -n "$CEPH_ROOT" ] && [ -n "$CEPH_BUILD_DIR" ]; then

or It's always true if the variables are not defined.

----- Mail original -----
De: "aderumier" <[email protected]>
À: "ceph-devel" <[email protected]>
Envoyé: Samedi 23 Avril 2016 18:08:32
Objet: jewel debian init.d script not working (since commit 65963739cd6815b8008282c8f64cd64365662e60)

Hi,

since this commit
https://github.com/ceph/ceph/commit/65963739cd6815b8008282c8f64cd64365662e60

if [ -n $CEPH_BIN ] && [ -n $CEPH_ROOT ] && [ -n $CEPH_BUILD_DIR ]; then #need second look at all variables, especially ETCDIR BINDIR=$CEPH_BIN
SBINDIR=$CEPH_ROOT/src
ETCDIR=$CEPH_BUILD_DIR
LIBEXECDIR=$CEPH_ROOT/src
SYSTEMD_RUN=""
ASSUME_DEV=1
fi

debian init.d script is not working anymore

From where are comming these $CEPH_BIN, $CEPH_ROOT, $CEPH_BUILD_DIR ?

It's always empty when we call init.d script

Quoted 1 line
Quoted 1 line

test -f $LIBEXECDIR/ceph_common.sh || exit 0

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