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)
|
restart|force-reload)
|
||||||
stop
|
stop
|
||||||
|
sleep 1
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
condrestart|try-restart)
|
condrestart|try-restart)
|
||||||
if [ -f /var/lock/subsys/$prog ]; then
|
if [ -f /var/lock/subsys/$prog ]; then
|
||||||
stop
|
stop
|
||||||
|
sleep 1
|
||||||
start
|
start
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -68,11 +68,13 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
restart|force-reload)
|
restart|force-reload)
|
||||||
stop
|
stop
|
||||||
|
sleep 1
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
condrestart|try-restart)
|
condrestart|try-restart)
|
||||||
if [ -f /var/lock/subsys/$prog ]; then
|
if [ -f /var/lock/subsys/$prog ]; then
|
||||||
stop
|
stop
|
||||||
|
sleep 1
|
||||||
start
|
start
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -67,11 +67,13 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
restart|force-reload)
|
restart|force-reload)
|
||||||
stop
|
stop
|
||||||
|
sleep 2
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
condrestart|try-restart)
|
condrestart|try-restart)
|
||||||
if [ -f /var/lock/subsys/$prog ]; then
|
if [ -f /var/lock/subsys/$prog ]; then
|
||||||
stop
|
stop
|
||||||
|
sleep 2
|
||||||
start
|
start
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: bacula
|
Name: bacula
|
||||||
Version: 5.2.11
|
Version: 5.2.11
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||||
# See LICENSE for details
|
# See LICENSE for details
|
||||||
License: AGPLv3 with exceptions
|
License: AGPLv3 with exceptions
|
||||||
@ -882,6 +882,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-3
|
||||||
- Introduce last minute critical patches.
|
- Introduce last minute critical patches.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user