Specify ZoneMinder::General for runCommand

This commit is contained in:
Isaac Connor 2021-12-15 09:08:54 -05:00
parent 28d5614da0
commit fe0e4627ef
1 changed files with 6 additions and 6 deletions

View File

@ -243,23 +243,23 @@ sub control {
if ($command eq 'stop' or $command eq 'restart') {
if ($process) {
runCommand("zmdc.pl stop $process -m $$monitor{Id}");
ZoneMinder::General::runCommand("zmdc.pl stop $process -m $$monitor{Id}");
} else {
if ($monitor->{Type} eq 'Local') {
runCommand('zmdc.pl stop zmc -d '.$monitor->{Device});
ZoneMinder::General::runCommand('zmdc.pl stop zmc -d '.$monitor->{Device});
} else {
runCommand('zmdc.pl stop zmc -m '.$monitor->{Id});
ZoneMinder::General::runCommand('zmdc.pl stop zmc -m '.$monitor->{Id});
}
}
}
if ( $command eq 'start' or $command eq 'restart' ) {
if ( $process ) {
runCommand("zmdc.pl start $process -m $$monitor{Id}");
ZoneMinder::General::runCommand("zmdc.pl start $process -m $$monitor{Id}");
} else {
if ($monitor->{Type} eq 'Local') {
runCommand('zmdc.pl stop zmc -d '.$monitor->{Device});
ZoneMinder::General::runCommand('zmdc.pl start zmc -d '.$monitor->{Device});
} else {
runCommand('zmdc.pl stop zmc -m '.$monitor->{Id});
ZoneMinder::General::runCommand('zmdc.pl start zmc -m '.$monitor->{Id});
}
} # end if
}