DOn't start Deleted monitors

pull/3692/head
Isaac Connor 2023-04-22 09:54:51 -04:00
parent 9b8dd156be
commit 12ecfa7dc9
1 changed files with 2 additions and 2 deletions

View File

@ -210,10 +210,10 @@ if ( $command =~ /^(?:start|restart)$/ ) {
require ZoneMinder::Server;
Info("Multi-server configuration detected. Starting up services for server $Config{ZM_SERVER_ID}");
$Server = new ZoneMinder::Server($Config{ZM_SERVER_ID});
@monitors = ZoneMinder::Monitor->find(ServerId=>$Config{ZM_SERVER_ID});
@monitors = ZoneMinder::Monitor->find(Deleted=>0, ServerId=>$Config{ZM_SERVER_ID});
} else {
Info('Single server configuration detected. Starting up services.');
@monitors = ZoneMinder::Monitor->find();
@monitors = ZoneMinder::Monitor->find(Deleted=>0);
}
foreach my $monitor (@monitors) {