Software /
code /
prosody
Diff
plugins/mod_posix.lua @ 7992:51396e0836cf
mod_posix: Use path variant of config API for pidfile option
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 21 Mar 2017 12:08:29 +0100 |
parent | 7731:a0ee83c4a82c |
child | 7999:980606856882 |
child | 8010:49feb0da29e1 |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Tue Mar 21 12:06:52 2017 +0100 +++ b/plugins/mod_posix.lua Tue Mar 21 12:08:29 2017 +0100 @@ -80,7 +80,7 @@ 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+";