aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-21 12:08:29 +0100
committerKim Alvefur <zash@zash.se>2017-03-21 12:08:29 +0100
commit593b5348efee34f9db46f20eb95415dbc4247e5b (patch)
tree5abc0bcf478adf0a976e8b67bfc1c2316dd5c84f /plugins/mod_posix.lua
parentc2c4f7fbc44b9df2873e62d7f9745ba864388e38 (diff)
downloadprosody-593b5348efee34f9db46f20eb95415dbc4247e5b.tar.gz
prosody-593b5348efee34f9db46f20eb95415dbc4247e5b.zip
mod_posix: Use path variant of config API for pidfile option
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r--plugins/mod_posix.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 0a6845ac..2103071a 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -80,7 +80,7 @@ local function write_pidfile()
if pidfile_handle then
remove_pidfile();
end
- pidfile = module:get_option_string("pidfile");
+ pidfile = module:get_option_path("pidfile", nil, "data");
if pidfile then
local err;
local mode = stat(pidfile) and "r+" or "w+";