mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Evenscripts: update 40.vsftpd to use ctdb_service_check_reconfigure.
To simplify we also remove the reconfigure from the recovered event because the monitor event will handle this very quickly anyway. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit da3aedd1a472b430b75989d3c157efedd382e327)
This commit is contained in:
parent
4daf8bb1c8
commit
d6c5fcfbae
@ -24,6 +24,8 @@ ctdb_start_stop_service
|
||||
|
||||
is_ctdb_managed_service || exit 0
|
||||
|
||||
ctdb_service_check_reconfigure
|
||||
|
||||
case "$1" in
|
||||
startup)
|
||||
ctdb_service_start
|
||||
@ -37,20 +39,7 @@ case "$1" in
|
||||
ctdb_service_set_reconfigure
|
||||
;;
|
||||
|
||||
recovered)
|
||||
# if we have taken or released any ips we must
|
||||
# restart vsftpd to ensure that all tcp connections are reset
|
||||
if ctdb_service_needs_reconfigure ; then
|
||||
ctdb_service_reconfigure
|
||||
fi
|
||||
;;
|
||||
|
||||
monitor)
|
||||
if ctdb_service_needs_reconfigure ; then
|
||||
ctdb_service_reconfigure
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$service_tcp_ports" ] ; then
|
||||
if ctdb_check_tcp_ports $service_tcp_ports ; then
|
||||
ctdb_counter_init
|
||||
|
Loading…
Reference in New Issue
Block a user