#!/bin/sh
set -e

# If upgrading, postinst will restart. So we only need stop if removing.
if [ -x "/etc/init.d/apache-htcacheclean" ] && [ "$1" = remove ] ; then
	if [ -f /run/openrc/softlevel ]; then
		rc-service apache-htcacheclean stop || true
	fi
fi

#DEBHELPER#
