From e014ea88861f4f27b4a5db14c32133a3b864411e Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 23 Jul 2015 15:07:45 +0800 Subject: [PATCH] init-ceph: check if /lib/lsb/init-functions exists On OSX/FreeBSD, /lib/lsb/init-functions does not exist Signed-off-by: Yan, Zheng (cherry picked from commit bb1fa7f3993dfcd1243b2a9a0bb432c269df215f) --- src/init-ceph.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/init-ceph.in b/src/init-ceph.in index f7acccaf39466..e4cea7ef17e56 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -12,7 +12,10 @@ # Description: Enable Ceph distributed file system services. ### END INIT INFO -. /lib/lsb/init-functions +# TODO: on FreeBSD/OSX, use equivalent script file +if [ -e /lib/lsb/init-functions ]; then + . /lib/lsb/init-functions +fi # detect systemd, also check whether the systemd-run binary exists SYSTEMD_RUN=$(which systemd-run 2>/dev/null) -- 2.39.5