From owner-freebsd-ports@FreeBSD.ORG Fri Dec 1 13:27:59 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 7893B16A47E for ; Fri, 1 Dec 2006 13:27:59 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from internet.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3ADD43C9D for ; Fri, 1 Dec 2006 13:27:44 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pgh.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id 4BD3B69A4E; Fri, 1 Dec 2006 08:27:58 -0500 (EST) Date: Fri, 1 Dec 2006 08:27:56 -0500 From: Bill Moran To: Erik Trulsson Message-Id: <20061201082756.488cf968.wmoran@potentialtech.com> In-Reply-To: <20061130223220.GA6306@owl.midgard.homeip.net> References: <20061130170943.70c02bfe.wmoran@potentialtech.com> <20061130223220.GA6306@owl.midgard.homeip.net> X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.10.6; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 01 Dec 2006 13:27:59 -0000 In response to Erik Trulsson : > 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. Ahh ... so that pidfile is dependent on a setting in the config file. Of course, I was looking through the rsync(1) man page, which makes no mention of this. It's odd that there's no command line switch that corresponds. I copied the rsyncd.conf file from an older system, and didn't look at the sample until you pointed it out. It would be nice if this could be specified on the command line, so it could be a default option set in the rc script. Perfect world vs. nearly perfect world ... Thanks for the feedback. > > > 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 -- Bill Moran Collaborative Fusion Inc.