您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. # prerm script for snf-server
  3. #
  4. # see: dh_installdeb(1)
  5. # summary of how this script can be called:
  6. # * <prerm> `remove'
  7. # * <old-prerm> `upgrade' <new-version>
  8. # * <new-prerm> `failed-upgrade' <old-version>
  9. # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
  10. # * <deconfigured's-prerm> `deconfigure' `in-favour'
  11. # <package-being-installed> <version> `removing'
  12. # <conflicting-package> <version>
  13. # for details, see http://www.debian.org/doc/debian-policy/ or
  14. # the debian-policy package
  15. case "$1" in
  16. remove|upgrade|deconfigure)
  17. # Stop the SNFServer service.
  18. service snf-server stop
  19. service snf-server status
  20. exit 0
  21. ;;
  22. failed-upgrade)
  23. ;;
  24. *)
  25. echo "prerm called with unknown argument \`$1'" >&2
  26. exit 1
  27. ;;
  28. esac
  29. # dh_installdeb will replace this with shell code automatically
  30. # generated by other debhelper scripts.
  31. #DEBHELPER#
  32. exit 0