#!/bin/bash

# stop the services
# stop the services (if running)
{% for package in package_service_dependencies %}
initctl emit {{ package | upper }}_STOP_ALL
{% endfor %}

{% if debian_scripts.prerm is defined %}
{% for script in debian_scripts.prerm %}
{{ script }}
{% endfor %}
{% endif %}

{% if is_python|default(False) %}
find {{ pyfiles_path }} -name "*.pyc" -delete
{% endif %}
