put the sendControlCommand(quit) into the right place
This commit is contained in:
parent
21ccb9b91a
commit
74929236e3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue