restart a script in etc/rc.d

Artis Caune artis.caune at
Mon Mar 2 14:10:56 PST 2009

2009/3/2 Artis Caune <artis.caune at>:
> 2009/3/2 Oliver Lehmann <lehmann at>:
>> root at 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/"
> can you try with:
>    bacula_fd_pidfile="/var/run/"
> in /etc/rc.conf ?

There is logic error in bacula rc.d script. It should first set
default variables and only then use them.
    : ${bacula_fd_pidfile="/var/run/"}

If you don't set pidfile in rc.conf, pidfile is "" so it kills all bacula-fd's

Artis Caune

<----. CCNA | BSDA
<----' didii FreeBSD

More information about the freebsd-ports mailing list