Changeset

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
parents 7991:35a02ba83af2
children 7993:c654c92aad55
files plugins/mod_posix.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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+";