mod_posix: Use path variant of config API for pidfile option
authorKim Alvefur <zash@zash.se>
Tue, 21 Mar 2017 12:08:29 +0100
changeset 7995 51396e0836cf
parent 7994 35a02ba83af2
child 7996 c654c92aad55
mod_posix: Use path variant of config API for pidfile option
plugins/mod_posix.lua
--- 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+";