From owner-freebsd-stable@FreeBSD.ORG Mon Mar 2 22:10:55 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1DE61065675; Mon, 2 Mar 2009 22:10:55 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: from mail-fx0-f158.google.com (mail-fx0-f158.google.com [209.85.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id CEB5D8FC1D; Mon, 2 Mar 2009 22:10:54 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: by fxm2 with SMTP id 2so2155308fxm.43 for ; Mon, 02 Mar 2009 14:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HygZTvHgu96VvcZ/nSuG+IrSaqc91JowcBzelLI0tNg=; b=aoLcqRl4eaAelN4CQ2PNjT76MK8NlDFeq89bA0iBxZzTAHbQtixC6Otn4jB50QIJy3 plPcg8l4DWJFb4+0aJs9UbhaV2NeDjtaz/e9cGzmdYFfVa86apXPDqeFXFXBob5r1hzD doYBVLRjQ4onujLr1CRiDTX92jzFkJUt2jhSk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HRuh2sXRIsIV68BynFeG9JWeG6bb38G65zLCQ1Iy8PSV23EWNIb83rsHbWOiLCSQLj D1Wf2oeXMKxXYV5WwSb/OSKkjx19ArR/TemmNuvrJp/8PGDjmwTFA1SPPNmhVwEKCjXu xC9xj+yfxXFiP0B49bGkdO35Vi6a2G9hQJ7Y0= MIME-Version: 1.0 Received: by 10.86.76.16 with SMTP id y16mr5563822fga.19.1236031853697; Mon, 02 Mar 2009 14:10:53 -0800 (PST) In-Reply-To: <9e20d71e0903021355i3ad66b8fx14bdc3b395e311a5@mail.gmail.com> References: <20090302163843.cc66c55e.lehmann@ans-netz.de> <20090302202520.eaf09b15.lehmann@ans-netz.de> <9e20d71e0903021355i3ad66b8fx14bdc3b395e311a5@mail.gmail.com> Date: Tue, 3 Mar 2009 00:10:53 +0200 Message-ID: <9e20d71e0903021410i26ca8088oc2de76009b2773d2@mail.gmail.com> From: Artis Caune To: Oliver Lehmann Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, stable@freebsd.org, Doug Barton Subject: Re: restart a script in etc/rc.d X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2009 22:10:56 -0000 2009/3/2 Artis Caune : > 2009/3/2 Oliver Lehmann : >> root@nudel rc.d> grep bacula_fd /etc/rc.conf >> bacula_fd_enable=3D"YES" >> bacula_fd2_enable=3D"YES" >> bacula_fd2_flags=3D" -u root -g wheel -v -c /usr/local/etc/bacula-fd2.co= nf" >> bacula_fd2_pidfile=3D"/var/run/bacula-fd.9104.pid" > > can you try with: > =C2=A0 =C2=A0bacula_fd_pidfile=3D"/var/run/bacula-fd.9102.pid" > in /etc/rc.conf ? There is logic error in bacula rc.d script. It should first set default variables and only then use them. pidfile=3D"${bacula_fd_pidfile}" : ${bacula_fd_pidfile=3D"/var/run/bacula-fd.9102.pid"} If you don't set pidfile in rc.conf, pidfile is "" so it kills all bacula-f= d's --=20 regards, Artis Caune <----. CCNA | BSDA <----|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <----' didii FreeBSD