summaryrefslogtreecommitdiff
path: root/lib/oxidized/cli.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-05-25 13:18:45 +0300
committerytti <saku@ytti.fi>2016-05-25 13:18:45 +0300
commit65273f736ce059fbb3785e251f65a3f84b387ef1 (patch)
treef421c36b1cd4ab4ff77b3ac95c147556f26cee1c /lib/oxidized/cli.rb
parent5c6904020c57a6904c09276ba3ab4a4cda8550b2 (diff)
parent511508b9e2768e116978fc8e973d34afb1d999ab (diff)
Merge pull request #435 from roedie/config-pid
Support setting pidfile location
Diffstat (limited to 'lib/oxidized/cli.rb')
-rw-r--r--lib/oxidized/cli.rb2
1 files changed, 1 insertions, 1 deletions
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