#! /bin/sh # postinst script for collectd # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package if [ -x "/etc/init.d/collectd" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d collectd restart || exit $? else /etc/init.d/collectd restart || exit $? fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0