Diff

plugins/mod_posix.lua @ 600:2255a2e84ddc

Automated merge with http://waqas.ath.cx:8000/
author Matthew Wild <mwild1@gmail.com>
date Sun, 07 Dec 2008 19:18:50 +0000
parent 594:6d9b2da9888f
child 722:63456c9d0522
line wrap: on
line diff
--- a/plugins/mod_posix.lua	Mon Dec 08 00:18:01 2008 +0500
+++ b/plugins/mod_posix.lua	Sun Dec 07 19:18:50 2008 +0000
@@ -35,15 +35,13 @@
 			log("info", "Daemonized to pid %d", ret);			
 			os.exit(0);
 		else
-			log("info", "Successfully daemonized");
-
 			if logwriter then
 				local ok, ret = logger_set(logwriter);
 				if not ok then
 					log("error", "Couldn't set new log output: %s", ret);
 				end
 			end
-			
+			log("info", "Successfully daemonized");	
 		end
 	end
 	module:add_event_hook("server-starting", daemonize_server);