Package ceph-base: Скрипты

Post install

1
2
3
4
5
6
systemctl daemon-reload ||:
if [ "$1" -eq 1 ]; then
        systemctl -q preset ceph.target ceph-crash.service ||:
else
        systemctl try-restart ceph.target ceph-crash.service ||:
fi
Pre uninstall

1
2
3
4
if [ "$1" -eq 0 ]; then
        systemctl --no-reload -q disable ceph.target ceph-crash.service ||:
        systemctl stop ceph.target ceph-crash.service ||:
fi