[bacula/f17] Add sleep in RHEL init scripts restart command
Simone Caronni
slaanesh at fedoraproject.org
Fri Sep 14 10:13:27 UTC 2012
commit 7874639cb51c5194fc849864f9a4e798313c929b
Author: Simone Caronni <negativo17 at gmail.com>
Date: Fri Sep 14 12:12:45 2012 +0200
Add sleep in RHEL init scripts restart command
bacula-dir.init | 2 ++
bacula-fd.init | 2 ++
bacula-sd.init | 2 ++
bacula.spec | 6 +++++-
4 files changed, 11 insertions(+), 1 deletions(-)
---
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 <negativo17 at gmail.com> - 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 <negativo17 at gmail.com> - 5.2.11-3
- Introduce last minute critical patches.
More information about the scm-commits
mailing list