blob: 7ec945a7dc5f2f6fe78e026f5632cdfd8c55f283 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|