[arch-general] rsyncd pid file already exists

Chris Allison chris.charles.allison at googlemail.com
Thu Mar 11 12:41:31 CET 2010


Hi,

rsync when run as a daemon from /etc/rc.d/rsyncd writes it's own pid
file to /var/run/rsyncd.pid
this conflicts with the start-stop script which also writes the pid
file.  I couldn't get rsync to start as a daemon after upgrading
yesterday, without commenting out the line in the start-stop script:
case "$1" in
  start)
    stat_busy "Starting rsyncd"
    [ ! -f /var/run/daemons/rsyncd ] && /usr/bin/rsync --daemon
    if [ $? -gt 0 ]; then
      stat_fail
    else
      # pgrep -of "/usr/bin/rsync --daemon" > /var/run/rsyncd.pid
      add_daemon rsyncd
      stat_done
    fi
    ;;

Should I report this as a bug, I have searched bugs.archlinux.org for
rsync with no results, and also in the forums.

cheers

Chris


More information about the arch-general mailing list