Package: bacula
Version: 1.36.3-2
Severity: normal
Tags: patch

On my computer, I mount the /var/run directory on tmpfs, as a result,
this directory is empty on each reboot.

The result is that the /var/run/bacula directory is deleted on each
reboot and bacula doesn't start anymore.

According to the FHS:
"Files under this directory should be cleared (removed or truncated as
appropriate) at the beginning of the boot process. Programs may have a
subdirectory of /var/run; this is encouraged for programs that use more
than one run-time file."


A possible solution is to create this directory in the init script:

--- bacula-director-common.bacula-director.init 2006-03-18
17:04:43.000000000 +0100
+++ bacula-director-common.bacula-director.init.new     2006-03-18
17:03:23.000000000 +0100
@@ -24,6 +24,14 @@
 PIDFILE=/var/run/bacula/$NAME.$PORT.pid


+create_var_run_dir()
+{
+       if [ ! -d /var/run/bacula/ ]; then
+               mkdir -p 0755 /var/run/bacula/
+               chown bacula:daemon /var/run/bacula/
+       fi
+}
+
 get_pid()
 {
        if [ -r "$1" ]; then pid="`cat $1`";
@@ -80,6 +88,7 @@
                exit 0
        fi
        echo -n "Starting $DESC: "
+       create_var_run_dir
        if do_start ; then echo "$NAME."
        else echo "failed." ; fi
   ;;




-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-18-386
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)

Versions of packages bacula depends on:
ii  bacula-console                1.36.3-2   Network backup, recovery and verif
ii  bacula-director-sqlite [bacul 1.36.3-2   Network backup, recovery and verif
ii  bacula-fd                     1.36.3-2   Network backup, recovery and verif
ii  bacula-sd                     1.36.3-2   Network backup, recovery and verif
ii  debconf                       1.4.72     Debian configuration management sy

bacula recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to