systemctl preset amo.service

# Derived from scripts automatically added by dh_installinit/13.6ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
        if [ -f "/usr/lib/systemd/system/amo.service" ]; then
                systemctl enable --now amo.service || true
        fi
	# Reload on upgrade.
	systemctl try-restart amo.service
fi
