#! /bin/sh
if [ -f /etc/init.d/apache2 ]; then
    /usr/sbin/update-rc.d apache2 disable
fi
if [ -f /etc/init.d/postgresql ]; then
    /usr/sbin/update-rc.d postgresql disable
fi
if [ -f /etc/init.d/memcached ]; then
    /usr/sbin/update-rc.d memcached disable
fi
if [ -f /etc/init.d/tomcat7 ]; then
    /usr/sbin/update-rc.d tomcat7 disable
fi
if [ -f /etc/init/mysql.conf ]; then
    echo manual > /etc/init/mysql.override
fi
if [ -f /etc/init/dovecot.conf ]; then
    echo manual > /etc/init/dovecot.override
fi
## git-daemon enabled by link
##    /etc/service/git-daemon --> /etc/sv/git-daemon
if [ -L /etc/service/git-daemon ]; then
    echo "Disabling GIT"
    /bin/rm /etc/service/git-daemon
fi
