Add sleep in RHEL init scripts restart command
This commit is contained in:
parent
40e02d4ff4
commit
7874639cb5
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
;;
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user