X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=debian%2Fpostrm;fp=debian%2Fpostrm;h=0ac0e5e1ea4b37a7eaf9da116551c636e702eedd;hp=0000000000000000000000000000000000000000;hb=bfa17fc5a6298ef207c5fbc9867bd82443909921;hpb=8ee9e0bd938ab23afa18a95d7ec8e8da770c63de diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..0ac0e5e --- /dev/null +++ b/debian/postrm @@ -0,0 +1,46 @@ +#!/bin/sh +# postrm script for prometheus +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|abort-install|disappear) + if [ -x "/etc/init.d/prometheus" ];then + /etc/init.d/prometheus stop + update-rc.d -f prometheus remove >/dev/null + fi + ;; + + upgrade|failed-upgrade|abort-upgrade) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +