#!/bin/bash

set -e

if id -u evqueue >/dev/null 2>&1; then
        deluser --quiet evqueue
fi

service rsyslog restart

# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
	update-rc.d evqueue remove >/dev/null
fi


# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [ -d /run/systemd/system ] ; then
	systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section


# Force clean exit to prevent broken pacakge
exit 0
