#!/bin/sh case "$1" in start) [ -x /usr/local/bin/rsync ] && [ -f /usr/local/etc/rsyncd.conf ] && \ /usr/local/bin/rsync --daemon > /dev/null && echo -n ' rsyncd' ;; stop) [ -r /var/run/rsyncd.pid ] && /bin/kill -9 `cat /var/run/rsyncd.pid` > /dev/null && echo -n ' rsyncd' ;; *) echo "Usage: `basename $0` {start|stop}" >&2 ;; esac exit 0