#!/bin/sh
set -e

NAME=mono-xsp4
DESC="XSP WebServer"

case "$1" in
   upgrade|install)
	if [ -f /etc/init.d/mono-xsp4 ]; then
	    if which invoke-rc.d > /dev/null 2>&1; then
		invoke-rc.d mono-xsp4 stop
	    else
		/etc/init.d/mono-xsp4 stop
	    fi
	fi
	;;
esac

# Automatically added by dh_installinit/13.11.4
if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/mono-xsp4" ] ; then
	chmod +x "/etc/init.d/mono-xsp4" >/dev/null || true
fi
# End automatically added section


exit 0
