From fe0e4627efc4175d4f16c53d4d668ba740e85483 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 15 Dec 2021 09:08:54 -0500 Subject: [PATCH] Specify ZoneMinder::General for runCommand --- scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm b/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm index 87b75ad02..d179534d4 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm @@ -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 }