General: * add REMOTERDIFF command customization to allow for a different pathh on remote (XXX: maybe we should just assume "rdiff-backup is in the path?) * put command configuration here instead of in the global file FreeBSD-specific: * don't use debug as it hangs here * use eval nice and not su, i don't remember why --- handlers/rdiff.in.orig Sat Nov 24 18:44:07 2007 +++ handlers/rdiff.in Wed Dec 5 00:13:10 2007 @@ -36,8 +36,8 @@ else local user=$1 local host=$2 - debug "ssh $sshoptions $host -l $user '$RDIFFBACKUP -V'" - echo `ssh $sshoptions $host -l $user "$RDIFFBACKUP -V | grep rdiff-backup"` + debug "ssh $sshoptions $host -l $user '$REMOTERDIFF -V'" + echo `ssh $sshoptions $host -l $user "$REMOTERDIFF -V | grep rdiff-backup"` fi } @@ -78,6 +78,9 @@ getconf nicelevel 0 getconf bwlimit +getconf REMOTERDIFF /usr/bin/rdiff-backup +getconf RDIFFBACKUP /usr/bin/rdiff-backup + setsection source getconf type; sourcetype=$type getconf user; sourceuser=$user @@ -239,7 +242,7 @@ debug "$execstr" if [ $test = 0 ]; then - output=`nice -n $nicelevel su -c "$execstr" 2>&1` + output=`eval nice -n $nicelevel "$execstr" 2>&1` if [ $? = 0 ]; then debug $output info "Successfully finished backing up source $label"