Date: Thu, 30 Nov 2006 23:32:20 +0100 From: Erik Trulsson <ertr1013@student.uu.se> To: Bill Moran <wmoran@potentialtech.com> Cc: ports@freebsd.org Subject: Re: rsync as a daemon doesn't play nice with rcng Message-ID: <20061130223220.GA6306@owl.midgard.homeip.net> In-Reply-To: <20061130170943.70c02bfe.wmoran@potentialtech.com> References: <20061130170943.70c02bfe.wmoran@potentialtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 30, 2006 at 05:09:43PM -0500, Bill Moran wrote: > > Noticed that the rsync port has an rcng compliant script for starting > rsync in daemon mode. Nice. > > Unfortunately, rsync doesn't seem to write its pidfile to /var/run, > and doesn't seem to even _support_ doing so. The documentation suggests that it *does* support doing so. The rsyncd.conf(5) manpage (referenced by the rsync(1) manpage) mentions a "pid file" option that seems to be exactly what you want. (The rsync port also installs an example rsyncd.conf into /usr/local/etc/ that sets that option.) I have never actually tried running rsync in daemon mode so I don't know if the above actually works, but it certainly seems like it should. > As a result, the rc > system is unable to determine when it's running, thus stop and > restart work poorly. > > Is there a mechanism within the rc system that can work around this > so the rc script can be improved? > > -- > Bill Moran > Collaborative Fusion Inc. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061130223220.GA6306>