diff --git a/web/includes/actions.php b/web/includes/actions.php index 705f9e258..c2d32f344 100644 --- a/web/includes/actions.php +++ b/web/includes/actions.php @@ -277,11 +277,6 @@ if ( !empty($action) ) zmaControl( $monitor, "stop" ); zmcControl( $monitor, $restart?"restart":"" ); zmaControl( $monitor, "start" ); - if ( $monitor['Controllable'] ) { - require_once( 'control_functions.php' ); - sendControlCommand( $mid, 'quit' ); - } - $ctrlCommand = ZM_PATH_BIN."/zmcontrol.pl --id=$mid --command=quit"; } $refreshParent = true; } @@ -541,6 +536,10 @@ if ( !empty($action) ) zmcControl( $monitor, "restart" ); zmaControl( $monitor, "start" ); } + if ( $monitor['Controllable'] ) { + require_once( 'control_functions.php' ); + sendControlCommand( $mid, 'quit' ); + } //daemonControl( 'restart', 'zmwatch.pl' ); $refreshParent = true; }