lib/oxidized/cli.rb in oxidized-0.10.0 vs lib/oxidized/cli.rb in oxidized-0.11.0
- old
+ new
@@ -22,10 +22,10 @@
_args, @opts = parse_opts
Config.load(@opts)
Oxidized.setup_logger
- @pidfile = File.expand_path("pid")
+ @pidfile = File.join(Oxidized::Config::Root, 'pid')
end
def crash error
Oxidized.logger.fatal "Oxidized crashed, crashfile written in #{Config::Crash}"
open Config::Crash, 'w' do |file|