Package ceph-mgr: Scripts

Post install

#post_service mgr
SYSTEMCTL=systemctl
if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
        "$SYSTEMCTL" daemon-reload ||:
        if [ "$1" -eq 1 ]; then
                "$SYSTEMCTL" -q preset ceph-mgr@\*.service ceph-mgr.target ||:
        else
                "$SYSTEMCTL" try-restart ceph-mgr.target ||:
        fi
else
        /usr/sbin/post_service ceph
fi
Pre uninstall

#preun_service mgr
if [ "$1" -eq 0 ]; then
        SYSTEMCTL=systemctl
        if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
                "$SYSTEMCTL" --no-reload -q disable ceph-mgr@\*.service ceph-mgr.target ||:
                "$SYSTEMCTL" stop ceph-mgr@\*.service ceph-mgr.target ||:
        else
                /usr/sbin/preun_service ceph
        fi

fi