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=1dd7f69fed060f27777f4f1bee50e60af32f6783;hpb=ec04fc0f482c16e1dc4845ee1ba469b89a387582 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 + +