From owner-freebsd-ports@FreeBSD.ORG Thu Nov 30 22:32:29 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4983816A416 for ; Thu, 30 Nov 2006 22:32:29 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01E7443CBF for ; Thu, 30 Nov 2006 22:32:12 +0000 (GMT) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-29-241.bredband.comhem.se ([83.253.29.241]:51227 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with smtp (Exim 4.63) (envelope-from ) id 1GpuS5-0007Vm-5S for ports@freebsd.org; Thu, 30 Nov 2006 23:32:21 +0100 Received: (qmail 45627 invoked from network); 30 Nov 2006 23:32:20 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 30 Nov 2006 23:32:20 +0100 Received: (qmail 6348 invoked by uid 1001); 30 Nov 2006 23:32:20 +0100 Date: Thu, 30 Nov 2006 23:32:20 +0100 From: Erik Trulsson To: Bill Moran Message-ID: <20061130223220.GA6306@owl.midgard.homeip.net> Mail-Followup-To: Bill Moran , ports@freebsd.org References: <20061130170943.70c02bfe.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061130170943.70c02bfe.wmoran@potentialtech.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Scan-Result: No virus found in message 1GpuS5-0007Vm-5S. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GpuS5-0007Vm-5S 9622c2e26586e595b5bf43303d7cea92 Cc: ports@freebsd.org Subject: Re: rsync as a daemon doesn't play nice with rcng X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 22:32:29 -0000 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. -- Erik Trulsson ertr1013@student.uu.se