restart a script in etc/rc.d
Artis Caune
artis.caune at gmail.com
Mon Mar 2 14:10:56 PST 2009
2009/3/2 Artis Caune <artis.caune at gmail.com>:
> 2009/3/2 Oliver Lehmann <lehmann at ans-netz.de>:
>> 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/bacula-fd.9104.pid"
>
> can you try with:
> bacula_fd_pidfile="/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="${bacula_fd_pidfile}"
: ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"}
If you don't set pidfile in rc.conf, pidfile is "" so it kills all bacula-fd's
--
regards,
Artis Caune
<----. CCNA | BSDA
<----|====================
<----' didii FreeBSD
More information about the freebsd-ports
mailing list