1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bacula/bexec.sh Wed Jan 07 00:25:41 2009 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +#!/bin/sh 1.5 +myName=`basename $0` 1.6 +cfgPath="@l_prefix@/etc/bacula" 1.7 +case "$myName" in 1.8 + bacula-dir ) cfg="bacula-dir.conf" ;; 1.9 + bacula-fd ) cfg="bacula-fd.conf" ;; 1.10 + bacula-sd ) cfg="bacula-sd.conf" ;; 1.11 + bconsole ) cfg="bconsole.conf" ;; 1.12 + bcopy ) cfg="bacula-sd.conf" ;; 1.13 + bextract ) cfg="bacula-sd.conf" ;; 1.14 + bls ) cfg="bacula-sd.conf" ;; 1.15 + bscan ) cfg="bacula-sd.conf" ;; 1.16 + dbcheck ) cfg="bacula-dir.conf" ;; 1.17 + tray-monitor ) cfg="tray-monitor.conf" ;; 1.18 + wx-console ) cfg="wx-console.conf" ;; 1.19 + * ) echo "bexec: illegal link to '$0'" 1>&2; exit 1 ;; 1.20 +esac 1.21 +cfg="$cfgPath/$cfg" 1.22 +# The user is still able to specify own config files, because 1.23 +# the commands accept multiple '-c' options. The last '-c' wins. 1.24 +exec @l_prefix@/libexec/bacula/$myName -c $cfg "$@"