DOn't start Deleted monitors
parent
9b8dd156be
commit
12ecfa7dc9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue