From owner-freebsd-ports@FreeBSD.ORG Mon Mar 2 19:25:24 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1090410656D2 for ; Mon, 2 Mar 2009 19:25:24 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with SMTP id 5859B8FC19 for ; Mon, 2 Mar 2009 19:25:22 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: (qmail 41836 invoked by uid 89); 2 Mar 2009 19:25:21 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (78.111.72.187) by avocado.salatschuessel.net with SMTP; 2 Mar 2009 19:25:21 -0000 Date: Mon, 2 Mar 2009 20:25:20 +0100 From: Oliver Lehmann To: Doug Barton Message-Id: <20090302202520.eaf09b15.lehmann@ans-netz.de> In-Reply-To: References: <20090302163843.cc66c55e.lehmann@ans-netz.de> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, stable@freebsd.org Subject: Re: restart a script in etc/rc.d 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: Mon, 02 Mar 2009 19:25:25 -0000 Hi Doug, Doug Barton wrote: > Also, the assignment of pidfile should really come after the defaults are > set. > > If you do all that and it still doesn't work, send a diff of your two rc.d > scripts to the list. PROVIDE is in both cases "utility" (probably a generic unchanged default) - I've changed it to utility2 for bacula-fd2 with no changes. Here the diff: root@nudel rc.d> diff -u bacula-fd* --- bacula-fd 2009-02-15 23:25:03.000000000 +0100 +++ bacula-fd2 2009-03-02 20:22:40.000000000 +0100 @@ -16,16 +16,16 @@ . /etc/rc.subr -name="bacula_fd" +name="bacula_fd2" rcvar=${name}_enable command=/usr/local/sbin/bacula-fd load_rc_config $name -pidfile="${bacula_fd_pidfile}" +pidfile="${bacula_fd2_pidfile}" -: ${bacula_fd_enable="NO"} -: ${bacula_fd_flags=" -u root -g wheel -v -c /usr/local/etc/bacula-fd.conf"} -: ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"} +: ${bacula_fd2_enable="NO"} +: ${bacula_fd2_flags=" -u root -g wheel -v -c /usr/local/etc/bacula-fd2.conf"} +: ${bacula_fd2_pidfile="/var/run/bacula-fd.9104.pid"} run_rc_command "$1" Exit 1 root@nudel rc.d> grep bacula_fd /etc/rc.conf bacula_fd_enable="YES" bacula_fd2_enable="YES" bacula_fd2_flags=" -u root -g wheel -v -c /usr/local/etc/bacula-fd2.conf" bacula_fd2_pidfile="/var/run/bacula-fd.9104.pid" root@nudel rc.d> -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/