ports/net/rsync/files/rsyncd.sh.sample
Oliver Braun 5d90ba6cc7 * Add rsyncd.conf.sample and rsyncd.sh.sample.
PR:		ports/48883
  Submitted by:	Morettoni Luca <luca@morettoni.net>

* Add patch for -current submitted by ume@

  Quote from ume@'s mail:

  It seems the daemon mode of rsync depends on an IPv4-mapped IPv6 address.
  Since an IPv4-mapped IPv6 address is off by default on 5-CURRENT, rsync
  doesn't listen on IPv4.  Further, rsync has a bug that it always listen on
  1st entry's address of the result of getaddrinfo() call.  With this patch,
  rsync listen on both an IPv4 and an IPv6.

* Make pkg-plist respect PORTDOCS.
2003-03-03 19:37:22 +00:00

16 lines
350 B
Bash

#!/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