From 0f395d0a26f2d3232af1966264eabf58e0618e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 10 Oct 2012 17:53:14 +0200 Subject: [PATCH] Feature #1490: Before a fsck, check that oned is not running --- src/onedb/onedb.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/onedb/onedb.rb b/src/onedb/onedb.rb index d1cc5e74db..79b3a1ef23 100644 --- a/src/onedb/onedb.rb +++ b/src/onedb/onedb.rb @@ -172,8 +172,11 @@ class OneDB file = "#{RUBY_LIB_LOCATION}/onedb/#{version}_fsck.rb" if File.exists? file + + one_not_running() + begin - # At least one upgrade will be executed, make DB backup + # FSCK will be executed, make DB backup backup(ops[:backup], ops) puts " > Running fsck" if ops[:verbose]