Hi,
I'm new to FreeBSD and have troubles with starting bareos-fd at system startup. I'm using FreeNAS 9.1.1 which uses FreeBSD 9.1. I recently compiled Bareos on a FreeBSD 9.1 system and installed it in a jail on FreeNAS.
The problem now is that Bareos is not starting after a reboot. Here are the steps I did so far:
If I use the command to check rcvar I get the following error
Any idea what I did wrong? Is it now allowed to user "-" in service names?
Regards,
Günter
I'm new to FreeBSD and have troubles with starting bareos-fd at system startup. I'm using FreeNAS 9.1.1 which uses FreeBSD 9.1. I recently compiled Bareos on a FreeBSD 9.1 system and installed it in a jail on FreeNAS.
The problem now is that Bareos is not starting after a reboot. Here are the steps I did so far:
- Add the following lines to /etc/rc.conf
Code:bareos-fd_enable="YES" bareos-sd_enable="YES"
- Add the files bareos-fd and bareos-sd into /usr/local/etc/rc.d
Code:#! /bin/sh # # bareos This shell script takes care of starting and stopping # the bareos File daemon. # # For Bareos release 12.4.4 (12 June 2013) -- freebsd # # PROVIDE: bareos-fd # . /etc/rc.subr name="bareos-fd" rcvar="bareos-fd_enable" command="/opt/bareos/sbin/bareos-fd" load_rc_config $name run_rc_command "$1"
Code:
# ./bareos-fd onestart
/etc/rc.conf: bareos-fd_enable=YES: not found
/etc/rc.conf: bareos-sd_enable=YES: not found
eval: bareos-fd_enable=YES: not found
./bareos-fd: WARNING: $bareos-fd_enable is not set properly - see rc.conf(5).
Cannot 'start' bareos-fd. Set bareos-fd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
If I use the command to check rcvar I get the following error
Code:
# service bareos-fd rcvar
/etc/rc.conf: bareos-fd_enable=YES: not found
/etc/rc.conf: bareos-sd_enable=YES: not found
/etc/rc.conf: bareos-fd_enable=YES: not found
/etc/rc.conf: bareos-sd_enable=YES: not found
# bareos-fd
#
bareos-fd_enable="-fd_enable"
# - -fd_enable_desc
# (default: "-fd_enable_defval")
Any idea what I did wrong? Is it now allowed to user "-" in service names?
Regards,
Günter