Merge "Fix file descriptor inheritance in ceph.sh script"
This commit is contained in:
commit
7641eef4f2
@ -8,7 +8,10 @@ INITDIR=/etc/init.d
|
|||||||
LOGFILE=/var/log/ceph/ceph-init.log
|
LOGFILE=/var/log/ceph/ceph-init.log
|
||||||
CEPH_STARTED_FLAG=/var/run/.ceph_started
|
CEPH_STARTED_FLAG=/var/run/.ceph_started
|
||||||
CEPH_CONFIGURED_FLAG=/etc/platform/.node_ceph_configured
|
CEPH_CONFIGURED_FLAG=/etc/platform/.node_ceph_configured
|
||||||
CEPH_INIT="${INITDIR}/ceph-init-wrapper"
|
|
||||||
|
# Call ceph-init-wrapper script with systemd-run to avoid inheriting any
|
||||||
|
# unwanted file descriptor.
|
||||||
|
CEPH_INIT="systemd-run --pipe --wait ${INITDIR}/ceph-init-wrapper"
|
||||||
|
|
||||||
# Get system/node configuration
|
# Get system/node configuration
|
||||||
. /etc/platform/platform.conf
|
. /etc/platform/platform.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user