# ------------------------------------
# Where to place subsys "lock file"
# ------------------------------------
-subsysdir=/var/run/subsys
+ubsysdir=/var/run/subsys
+if test -d /var/run/subsys; then
+ subsysdir=/var/run/subsys
+elif test -d /var/lock/subsys; then
+ subsysdir=/var/lock/subsys
+else
+ subsysdir=/var/run/subsys
+fi
AC_ARG_WITH(subsys-dir,
[ --with-subsys-dir=PATH specify location of Bacula subsys file],
[
# ------------------------------------
# Where to place subsys "lock file"
# ------------------------------------
-subsysdir=/var/run/subsys
+ubsysdir=/var/run/subsys
+if test -d /var/run/subsys; then
+ subsysdir=/var/run/subsys
+elif test -d /var/lock/subsys; then
+ subsysdir=/var/lock/subsys
+else
+ subsysdir=/var/run/subsys
+fi
# Check whether --with-subsys-dir was given.
if test "${with_subsys_dir+set}" = set; then
char ec1[50], ec2[50];
fsize = blseek(ofd, 0, SEEK_END);
bclose(ofd); /* first close file */
- if (attr->type == FT_REG && fsize > 0 && fsize != (boffset_t)attr->statp.st_size) {
+ if (attr->type == FT_REG && fsize > 0 && attr->statp.st_size > 0 &&
+ fsize != (boffset_t)attr->statp.st_size) {
Jmsg3(jcr, M_ERROR, 0, _("File size of restored file %s not correct. Original %s, restored %s.\n"),
attr->ofname, edit_uint64(attr->statp.st_size, ec1),
edit_uint64(fsize, ec2));
-/*
- * Lexical scanner for Bacula configuration file
- *
- * Kern Sibbald, 2000
- *
- * Version $Id$
- *
- */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ * Lexical scanner for Bacula configuration file
+ *
+ * Kern Sibbald, 2000
+ *
+ * Version $Id$
+ *
+ */
#include "bacula.h"
#include "lex.h"
bins.path = /$(DESTDIR)@sbindir@
bins.files = ./bat
confs.path = /$(DESTDIR)@sysconfdir@
-confs.files = ./bat.conf
+confs.commands = ./install_conf_file
TEMPLATE = app
TARGET = bat
installation. The configuration and other application data files are in the\r
"C:\Documents and Settings\All Users\Application Data\Bacula" directory.\r
\r
+Code Page Problems\r
+-------------------\r
+Please note that Bacula expects the contents of the configuration files to be \r
+written in UTF-8 format. Some translations of "Application Data" have accented\r
+characters, and apparently the installer writes this translated data in the\r
+standard Windows code page coding. This occurs for the Working Directory, and \r
+when it happens the daemon will not start since Bacula cannot find the directory.\r
+The workaround is to manually edit the appropriate conf file and ensure that it\r
+is written out in UTF-8 format.\r
+\r
\r
Storage and Director Services\r
-----------------------------\r
Technical notes on version 2.1
General:
+29Apr07
+kes Reapply my bat.conf install script in qt-console. I think I
+ editted bat.pro instead of bat.pro.in and it was lost.
+kes Apply CentOS patches someone sent me. Checks for /var/run/subsys,
+ the /var/lock/subsys for subsysdir. Also corrects typos in the
+ doc.
28Apr07
kes First cut update job.
kes Correct configure to include qmake of src/qt-console directory.