From owner-freebsd-questions@FreeBSD.ORG Tue Mar 15 14:38:55 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22DDE16A4CE for ; Tue, 15 Mar 2005 14:38:55 +0000 (GMT) Received: from galilee.polands.org (CPE-24-208-53-189.new.rr.com [24.208.53.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4824F43D41 for ; Tue, 15 Mar 2005 14:38:54 +0000 (GMT) (envelope-from djp@polands.org) Received: from jericho.polands.org (jericho.polands.org [172.16.1.35] (may be forged)) by galilee.polands.org (8.12.9/8.12.9) with ESMTP id j2FEcRoR009412; Tue, 15 Mar 2005 08:38:28 -0600 (CST) (envelope-from djp@polands.org) Received: from jericho.polands.org (localhost [127.0.0.1]) by jericho.polands.org (8.13.3/8.13.1) with ESMTP id j2FEcLTn067189; Tue, 15 Mar 2005 08:38:21 -0600 (CST) (envelope-from djp@jericho.polands.org) Received: (from djp@localhost) by jericho.polands.org (8.13.3/8.13.1/Submit) id j2FEcFZZ067188; Tue, 15 Mar 2005 08:38:15 -0600 (CST) (envelope-from djp) Date: Tue, 15 Mar 2005 08:38:15 -0600 From: Doug Poland To: Giorgos Keramidas Message-ID: <20050315143815.GA67147@polands.org> References: <20050314215615.GM65944@polands.org> <20050315061917.GB42670@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050315061917.GB42670@gothmog.gr> User-Agent: Mutt/1.5.8i cc: freebsd-questions@freebsd.org Subject: Re: rc.subr startup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 14:38:55 -0000 On Tue, Mar 15, 2005 at 08:19:17AM +0200, Giorgos Keramidas wrote: > On 2005-03-14 15:56, Doug Poland wrote: > > > > I'm running 5.3-STABLE and I want to write a startup script for > > ports/sysutils/mcron. The twis is, I want an mcron process for > > each user I specify in an external file. For example... > > ... snip ... > > > This does not work because run_rc_command checks to see if the process > > is already running before attempting to launch another instance. > > Are you, by any chance, setting $pidfile to anything that is not shown > above? The check_pidfile() check is disabled when $pidfile is empty. > no > > Perhaps this is something best accomplished in /etc/rc.local? > > Probably. > That's what I did. Not as elegant, but quick, easy, and it works. Thanks for your help. -- Regards, Doug