michael@20: #!/bin/sh michael@20: myName=`basename $0` michael@20: cfgPath="@l_prefix@/etc/bacula" michael@20: case "$myName" in michael@20: bacula-dir ) cfg="bacula-dir.conf" ;; michael@20: bacula-fd ) cfg="bacula-fd.conf" ;; michael@20: bacula-sd ) cfg="bacula-sd.conf" ;; michael@20: bconsole ) cfg="bconsole.conf" ;; michael@20: bcopy ) cfg="bacula-sd.conf" ;; michael@20: bextract ) cfg="bacula-sd.conf" ;; michael@20: bls ) cfg="bacula-sd.conf" ;; michael@20: bscan ) cfg="bacula-sd.conf" ;; michael@20: dbcheck ) cfg="bacula-dir.conf" ;; michael@20: tray-monitor ) cfg="tray-monitor.conf" ;; michael@20: wx-console ) cfg="wx-console.conf" ;; michael@20: * ) echo "bexec: illegal link to '$0'" 1>&2; exit 1 ;; michael@20: esac michael@20: cfg="$cfgPath/$cfg" michael@20: # The user is still able to specify own config files, because michael@20: # the commands accept multiple '-c' options. The last '-c' wins. michael@20: exec @l_prefix@/libexec/bacula/$myName -c $cfg "$@"