Changeset

3537:7bbb19804d82

mod_posix: Updated to use the new events API.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 16 Oct 2010 07:45:12 +0500
parents 3536:fab65a4692ac
children 3538:3ea38f44420c
files plugins/mod_posix.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_posix.lua	Sat Oct 16 07:31:50 2010 +0500
+++ b/plugins/mod_posix.lua	Sat Oct 16 07:45:12 2010 +0500
@@ -30,7 +30,7 @@
 pposix.umask(umask);
 
 -- Allow switching away from root, some people like strange ports.
-module:add_event_hook("server-started", function ()
+module:hook("server-started", function ()
 		local uid = module:get_option("setuid");
 		local gid = module:get_option("setgid");
 		if gid then
@@ -158,7 +158,7 @@
 	write_pidfile();
 end
 
-module:add_event_hook("server-stopped", remove_pidfile);
+module:hook("server-stopped", remove_pidfile);
 
 -- Set signal handlers
 if signal.signal then