From 511508b9e2768e116978fc8e973d34afb1d999ab Mon Sep 17 00:00:00 2001 From: roedie Date: Wed, 25 May 2016 12:00:33 +0200 Subject: Support setting pidfile location --- lib/oxidized/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/cli.rb') diff --git a/lib/oxidized/cli.rb b/lib/oxidized/cli.rb index 0594dcb..9a09d41 100644 --- a/lib/oxidized/cli.rb +++ b/lib/oxidized/cli.rb @@ -24,7 +24,7 @@ module Oxidized Config.load(@opts) Oxidized.setup_logger - @pidfile = File.join(Oxidized::Config::Root, 'pid') + @pidfile = File.expand_path(Oxidized.config.pid) end def crash error -- cgit v1.2.1