diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-10-16 07:45:12 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-10-16 07:45:12 +0500 |
commit | e981541bc4bec6067cd5c406bfbd71de97b75964 (patch) | |
tree | dac3698f0a13b723cf01e6bd777c35d043af3632 | |
parent | eab4099f575a95df7ab59600f9128528218dc7db (diff) | |
download | prosody-e981541bc4bec6067cd5c406bfbd71de97b75964.tar.gz prosody-e981541bc4bec6067cd5c406bfbd71de97b75964.zip |
mod_posix: Updated to use the new events API.
-rw-r--r-- | plugins/mod_posix.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index a3c01cfb..cb504787 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -30,7 +30,7 @@ local umask = module:get_option("umask") or "027"; 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 @@ else write_pidfile(); end -module:add_event_hook("server-stopped", remove_pidfile); +module:hook("server-stopped", remove_pidfile); -- Set signal handlers if signal.signal then |