add back daemon parameter, but make it actually work
This commit is contained in:
parent
9d8f0fef0c
commit
51d8c0ea73
|
@ -352,8 +352,7 @@ class MonitorsController extends AppController {
|
|||
));
|
||||
}
|
||||
|
||||
public function daemonControl($id, $command) {
|
||||
$daemons = array();
|
||||
public function daemonControl($id, $command, $daemon=null) {
|
||||
|
||||
// Need to see if it is local or remote
|
||||
$monitor = $this->Monitor->find('first', array(
|
||||
|
@ -362,11 +361,15 @@ class MonitorsController extends AppController {
|
|||
));
|
||||
$monitor = $monitor['Monitor'];
|
||||
|
||||
if ( ! $daemon ) {
|
||||
if ( $monitor['Function'] == 'Monitor' ) {
|
||||
array_push($daemons, 'zmc');
|
||||
} else {
|
||||
array_push($daemons, 'zmc', 'zma');
|
||||
}
|
||||
} else {
|
||||
array_push($daemons, $daemon);
|
||||
}
|
||||
|
||||
$zm_path_bin = Configure::read('ZM_PATH_BIN');
|
||||
|
||||
|
|
Loading…
Reference in New Issue