4 LOGFILE=/var/log/ceph/ceph-init.log
5 CEPH_FILE=/var/run/.ceph_started
8 . /etc/platform/platform.conf
10 # Exit immediately if ceph not configured (i.e. no mon in the config file)
11 if ! grep -q "mon\." /etc/ceph/ceph.conf
25 logecho "Starting ceph services..."
26 ${INITDIR}/ceph start >> ${LOGFILE} 2>&1
29 if [ ! -f ${CEPH_FILE} ]; then
36 if [[ "$system_type" == "All-in-one" ]] && [[ "$system_mode" == "simplex" ]]; then
37 logecho "Ceph services will continue to run on node"
41 logecho "Stopping ceph services..."
43 if [ -f ${CEPH_FILE} ]; then
47 ${INITDIR}/ceph stop >> ${LOGFILE} 2>&1
61 echo "Usage: $0 {start|stop}"