#!/sbin/sh # # SVNSERVE - manage the SVN server. # From http://java.sun.com/developer/technicalArticles/javame/add_ons/ # See http://chess.eecs.berkeley.edu/ptolemy/wiki/Ptolemy/Subversion # case "$1" in 'start') if [ -x /usr/local/bin/svnserve ]; then /usr/local/bin/svnserve -d -r /export/home/svn fi ;; 'stop') if /usr/bin/pgrep svnserve >/dev/null 2>&1; then pkill svnserve fi ;; 'restart') /etc/init.d/svnserve stop /etc/init.d/svnserve start ;; esac exit 0