aboutsummaryrefslogtreecommitdiffstats
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
commita026db251db83fe1d9725886dec396cb73f07874 (patch)
tree5abc0bcf478adf0a976e8b67bfc1c2316dd5c84f
parentdb1c5183b1690f9b0a3357215641dbbcdda4b5f9 (diff)
downloadprosody-a026db251db83fe1d9725886dec396cb73f07874.tar.gz
prosody-a026db251db83fe1d9725886dec396cb73f07874.zip
mod_posix: Use path variant of config API for pidfile option
-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+";