[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bacula-devel] recent FHS change of file locations


Hello Kern,

Remember we recently changed scriptdir from /etc/bacula
to /usr/lib/bacula for FHS compatiblility in the rpm packages? Just
found a bug in the general bacula start/stop/status scripts after
installing 2.4 rpms. The affected scripts I think are bacula and
bacula-ctl-* and BACFDCFG. BACSDCFG and BACDIRCFG as prefixes to the
scripts need to be replaced with scriptdir variable.

<snip>

# All these are not *really* needed but it makes it
#  easier to "steal" this code for the development
#  environment where they are different.
#
BACFDCFG=/etc/bacula
BACSDCFG=/etc/bacula
BACDIRCFG=/etc/bacula

case "$1" in
   start)
      [ -x ${BACSDCFG}/bacula-ctl-sd ] && ${BACSDCFG}/bacula-ctl-sd $1
$2
      [ -x ${BACFDCFG}/bacula-ctl-fd ] && ${BACFDCFG}/bacula-ctl-fd $1
$2
      [ -x ${BACDIRCFG}/bacula-ctl-dir ] && ${BACDIRCFG}/bacula-ctl-dir
$1 $2
      ;;

   stop)
      # Stop the FD first so that SD will fail jobs and update catalog
      [ -x ${BACFDCFG}/bacula-ctl-fd ] && ${BACFDCFG}/bacula-ctl-fd $1
$2
      [ -x ${BACSDCFG}/bacula-ctl-sd ] && ${BACSDCFG}/bacula-ctl-sd $1
$2
      [ -x ${BACDIRCFG}/bacula-ctl-dir ] && ${BACDIRCFG}/bacula-ctl-dir
$1 $2
      echo
      sleep 6
      ;;

</snip>


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilotco.