#!/bin/sh
set -e

. /usr/share/debconf/confmodule

# We use dh_installinit --no-start so apmiser is neither started on
# initial install nor restarted on upgrade
#DEBHELPER#

case "$1" in
configure)
	if [ "$2" ] && [ "$2" != "<unknown>" ] ; then
		# Upgrading
		# Restart apmiser if it is already running
		/etc/init.d/apmiser try-restart
	fi
	;;
# *)
#	In other modes we don't need to do anything here
#	because we didn't take any action in the prerm
esac

db_stop

