Merge "Fix file descriptor inheritance in ceph.sh script"

This commit is contained in:
Zuul 2024-12-04 18:01:38 +00:00 committed by Gerrit Code Review
commit 7641eef4f2

View File

@ -8,7 +8,10 @@ INITDIR=/etc/init.d
LOGFILE=/var/log/ceph/ceph-init.log
CEPH_STARTED_FLAG=/var/run/.ceph_started
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
. /etc/platform/platform.conf