Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Mar 2009 00:10:53 +0200
From:      Artis Caune <artis.caune@gmail.com>
To:        Oliver Lehmann <lehmann@ans-netz.de>
Cc:        ports@freebsd.org, stable@freebsd.org, Doug Barton <dougb@freebsd.org>
Subject:   Re: restart a script in etc/rc.d
Message-ID:  <9e20d71e0903021410i26ca8088oc2de76009b2773d2@mail.gmail.com>
In-Reply-To: <9e20d71e0903021355i3ad66b8fx14bdc3b395e311a5@mail.gmail.com>
References:  <20090302163843.cc66c55e.lehmann@ans-netz.de> <alpine.BSF.2.00.0903021100190.59723@qbhto.arg> <20090302202520.eaf09b15.lehmann@ans-netz.de> <9e20d71e0903021355i3ad66b8fx14bdc3b395e311a5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/3/2 Artis Caune <artis.caune@gmail.com>:
> 2009/3/2 Oliver Lehmann <lehmann@ans-netz.de>:
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e20d71e0903021410i26ca8088oc2de76009b2773d2>