Add sleep in RHEL init scripts restart command

This commit is contained in:
Simone Caronni 2012-09-14 12:12:45 +02:00
parent 40e02d4ff4
commit 7874639cb5
4 changed files with 11 additions and 1 deletions

View File

@ -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
;;

View File

@ -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
;;

View File

@ -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
;;

View File

@ -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@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@gmail.com> - 5.2.11-3
- Introduce last minute critical patches.