NoPaste

/var/lib/dpkg/info/bind9.prerm

von suleiman

SNIPPET_TEXT:
  1. #!/bin/sh
  2. set -e
  3.  
  4. case "$1" in
  5.     remove)
  6.         # if bind is running, stop it before removing
  7.         if pidof named >/dev/null 2>&1; then
  8.                 # test if invoke-rc.d command is present on this system
  9.                 if command -v invoke-rc.d >/dev/null 2>&1; then
  10.                     invoke-rc.d bind9 stop >/dev/null
  11.                 # if really not, use initscript
  12.                 else
  13.                     /etc/init.d/bind9 stop >/dev/null
  14.                 fi
  15.         fi
  16.     ;;
  17.  
  18.     upgrade)
  19.         # leave bind running during the upgrade
  20.     ;;
  21.  
  22.     *)
  23.         echo "prerm called with unknown argument \`$1'" >&2
  24.         exit 1
  25.     ;;
  26. esac
  27.  
  28. exit 0

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN