mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
Pause polling and discovery if there's an update-lock
This commit is contained in:
@@ -100,6 +100,13 @@ if (isset($options['r'])) {
|
||||
$config['norrd'] = true;
|
||||
}
|
||||
|
||||
echo 'Checking for MySQL Locks:';
|
||||
while (!dbCheckLock('schema_update')) {
|
||||
echo '.';
|
||||
sleep(1);
|
||||
}
|
||||
echo PHP_EOL;
|
||||
|
||||
rrdtool_pipe_open($rrd_process, $rrd_pipes);
|
||||
|
||||
echo "Starting polling run:\n\n";
|
||||
|
||||
Reference in New Issue
Block a user