lib/zold/node/front.rb in zold-0.19.2 vs lib/zold/node/front.rb in zold-0.20.0

- old
+ new

@@ -208,10 +208,11 @@ cpus: settings.zache.get(:cpus) do Concurrent.processor_count end, memory: settings.zache.get(:memory, lifetime: 5 * 60) do mem = GetProcessMem.new.bytes.to_i - if mem > settings.opts['oom-limit'] * 1024 * 1024 && !settings.opts['skip-oom'] + if mem > settings.opts['oom-limit'] * 1024 * 1024 && + !settings.opts['skip-oom'] && !settings.opts['never-reboot'] settings.log.error("We are too big in memory (#{Size.new(mem)}), quitting; use --skip-oom to never quit") Front.stop! end mem end,