1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh # only when used locally if test "$1" != rsync; then shift fi if test "$1" != rsync; then echo >&2 'invalid argument' exit 1 fi exec rsync --server --daemon --log-file=/dev/stderr .