diff --git a/bacula-dir.init b/bacula-dir.init index 9f999b0..d24bdb4 100644 --- a/bacula-dir.init +++ b/bacula-dir.init @@ -68,11 +68,13 @@ case "$1" in ;; restart|force-reload) stop + sleep 1 start ;; condrestart|try-restart) if [ -f /var/lock/subsys/$prog ]; then stop + sleep 1 start fi ;; diff --git a/bacula-fd.init b/bacula-fd.init index 662deba..7300831 100644 --- a/bacula-fd.init +++ b/bacula-fd.init @@ -68,11 +68,13 @@ case "$1" in ;; restart|force-reload) stop + sleep 1 start ;; condrestart|try-restart) if [ -f /var/lock/subsys/$prog ]; then stop + sleep 1 start fi ;; diff --git a/bacula-sd.init b/bacula-sd.init index 98327d9..3d7157a 100644 --- a/bacula-sd.init +++ b/bacula-sd.init @@ -67,11 +67,13 @@ case "$1" in ;; restart|force-reload) stop + sleep 2 start ;; condrestart|try-restart) if [ -f /var/lock/subsys/$prog ]; then stop + sleep 2 start fi ;; diff --git a/bacula.spec b/bacula.spec index 5f8f760..8a50758 100644 --- a/bacula.spec +++ b/bacula.spec @@ -3,7 +3,7 @@ Name: bacula Version: 5.2.11 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Cross platform network backup for Linux, Unix, Mac and Windows # See LICENSE for details License: AGPLv3 with exceptions @@ -882,6 +882,10 @@ fi %changelog +* Fri Sep 14 2012 Simone Caronni - 5.2.11-4 +- Add a sleep timer for RHEL init scripts restart as Debian does. + Problems verified on the sd exiting too early on VMs and slow boxes. + * Thu Sep 13 2012 Simone Caronni - 5.2.11-3 - Introduce last minute critical patches.