File prosody-cfg.patch of Package prosody

Index: prosody-0.9.2/prosody.cfg.lua.dist
===================================================================
--- prosody-0.9.2.orig/prosody.cfg.lua.dist
+++ prosody-0.9.2/prosody.cfg.lua.dist
@@ -63,7 +63,7 @@ modules_enabled = {
 		--"http_files"; -- Serve static files from a directory over HTTP
 
 	-- Other specific functionality
-		--"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
+		"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
 		--"groups"; -- Shared roster support
 		--"announce"; -- Send announcement to all online users
 		--"welcome"; -- Welcome users who register accounts
@@ -80,6 +80,9 @@ modules_disabled = {
 	-- "s2s"; -- Handle server-to-server connections
 };
 
+-- Unix specific
+pidfile = "@@PIDDIR@@/prosody/prosody.pid"
+
 -- Disable account creation by default, for security
 -- For more information see http://prosody.im/doc/creating_accounts
 allow_registration = false;
@@ -139,8 +142,8 @@ authentication = "internal_plain"
 -- Logging configuration
 -- For advanced logging see http://prosody.im/doc/logging
 log = {
-	info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging
-	error = "prosody.err";
+	info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
+	error = "/var/log/prosody/prosody.err";
 	-- "*syslog"; -- Uncomment this for logging to syslog
 	-- "*console"; -- Log to the console, useful for debugging with daemonize=false
 }