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" <aderumier@xxxxxxxxx> À: "ceph-devel" <ceph-devel@xxxxxxxxxxxxxxx> 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 >>test -f $LIBEXECDIR/ceph_common.sh || exit 0 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html