#!/bin/sh

set -e

# Stop the socket on remove so rsyslog is not restarted via socket activation
if [ -d /run/systemd/system ] && [ "$1" = remove ] ; then
	systemctl stop syslog.socket || true
fi

# Automatically added by dh_installinit
if ([ -x "/etc/init.d/rsyslog" ] || [ -e "/etc/init/rsyslog.conf" ]) && \
   [ "$1" = remove ]; then
	invoke-rc.d rsyslog stop || exit $?
fi
# End automatically added section

