#!/bin/sh
 ps | grep '\(/svnserve| svnserve\)' | grep -cvq grep >/dev/null && /etc/init.d/subversion stop
 /etc/init.d/subversion disable
