#! /bin/sh

set -e

dpkg --assert-support-predepends

if [ "$1" = "upgrade" -a -f /etc/init.d/syslog-ng ]; then
    if [ -f /etc/init.d/syslog-ng ]
    then
	set +e
	sh /etc/init.d/syslog-ng stop
	set -e
    fi
fi

exit 0
