#! /bin/sh

set -e

# Stop the socket on remove so syslog-ng is not restarted via socket activation
if [ -x "/usr/bin/deb-systemd-invoke" ] && [ "$1" = remove ]; then
	deb-systemd-invoke stop syslog.socket || true
fi

# Automatically added by dh_installinit/13.11.4
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/syslog-ng" ] ; then
	invoke-rc.d syslog-ng stop || exit 1
fi
# End automatically added section


exit 0
