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

Post install

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

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