if[$1-eq1]&&sd_booted;then# Initial installation /lib/systemd/systemd-update-helperinstall-system-unitsceph-mgr.target||:fiif[$1-eq1];then
systemctlstartceph-mgr.target>/dev/null2>&1||:
fi
if[$1-ge2];then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to# "yes". In any case: if units are not running, do not touch them.SYSCONF_CEPH=/etc/sysconfig/ceph
if[-f$SYSCONF_CEPH-a-r$SYSCONF_CEPH];then
source$SYSCONF_CEPH
fi
if["X$CEPH_AUTO_RESTART_ON_UPGRADE"="Xyes"];then
systemctltry-restartceph-mgr@\*.service>/dev/null2>&1||:
fi
fi