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

Post install

 
if [ $1 -eq 1 ] && sd_booted; then 
    SYSTEMD_HELPER=/lib/systemd/systemd-update-helper; 
    # Initial installation 
    $SYSTEMD_HELPER install-system-units ceph-mds.target || : 
fi 

if [ $1 -eq 1 ] ; then
  systemctl start ceph-mds.target >/dev/null 2>&1 || :
fi

if [ $1 -eq 2 ] ; 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
    systemctl try-restart ceph-mds@\*.service > /dev/null 2>&1 || :
  fi
fi
Pre uninstall

1
2
3
4
5
6
 
if [ $1 -eq 0 ] && sd_booted; then 
    SYSTEMD_HELPER=/lib/systemd/systemd-update-helper; 
    # Package removal, not upgrade 
    $SYSTEMD_HELPER remove-system-units ceph-mds.target || : 
fi