Closed igorfk closed 10 years ago
Seems like "bconsole" command is missing, you need that installed (no idea what package is that for FreeBSD)
You're right iEletric, the bconsole command, which comes with bacula in FreeBSD, cannot be found by the script. I had to add the path to that binary, and for some others too. The final script, more suitable for a FreeBSD environment, is this:
#!/bin/sh
# PROVIDE: almird
# REQUIRE: bacula_dir
. /etc/rc.subr
name="almird"
rcvar=${name}_enable
command="/usr/local/www/almir/bin/supervisord"
load_rc_config $name
: ${almird_enable="NO"}
: ${almird_flags=" --pidfile=/var/run/almird.pid --logfile=/usr/local/www/almir/var/log/almird.log --logfile_maxbytes 500000 --logfile_backups 5"}
: ${almird_pidfile="/var/run/almird.pid"}
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
pidfile="${almird_pidfile}"
run_rc_command "$1"
I'm glad it works, thanks for example file! :)
Cannot start Almir via rc.d script in FreeBSD 9.1 with the following code: [/usr/local/etc/rc.d/almird]\=======================
\=====================================
The generated log (
W.X.Y.Z
is the local ip where Bacula, Apache and Almir are and some.domain.ex is the fqdn of the same machine): [/usr/local/www/almir/var/log/almird.log]\===========\=====================================
But running after log in server, manually, as root, with the command:
/usr/local/etc/rc.d/almird onestart
Starts Almir without problem