I just got bitten by a (fairly) subtle problem due to having an
inappropriate location for 'pid file' in my rsyncd.conf.

What I had was:-

    pid file = /home/chris/tmp/pid

This works fine until the system running rsync in daemon mode crashes
rather than being properly shut down.  The pid file doesn't get
removed and rsync doesn't restart because it thinks it's already
running.

My backup system crashed a couple of nights ago due to a power cut
(can't really blame it!) and I went and restarted it after the power
came back.  However, as I note above, files in /home/chris/tmp/pid
aren't cleared out so rsync refused to run when systemd attempted to
start it up.

I guess the pid file should either be in /tmp or somewhere in
/run/user.  However shouldn't there be some sort of sensible default
if it isn't set in rsyncd.conf?

-- 
Chris Green
ยท


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to