File prosody-cfg.patch of Package prosody

diff -urEbwB prosody-0.10.0/prosody.cfg.lua.dist prosody-0.10.0.new/prosody.cfg.lua.dist
--- prosody-0.10.0/prosody.cfg.lua.dist	2017-09-28 15:07:47.000000000 +0200
+++ prosody-0.10.0.new/prosody.cfg.lua.dist	2017-12-15 22:50:53.208924190 +0100
@@ -44,6 +44,8 @@
 		"dialback"; -- s2s dialback support
 		"disco"; -- Service discovery
 
+	    "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
+
 	-- Not essential, but recommended
 		"carbons"; -- Keep multiple clients in sync
 		"pep"; -- Enables users to publish their mood, activity, playing music and more
@@ -86,9 +88,11 @@
 	-- "offline"; -- Store offline messages
 	-- "c2s"; -- Handle client connections
 	-- "s2s"; -- Handle server-to-server connections
-	-- "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
 }
 
+-- Unix specific
+pidfile = "@@PIDDIR@@/prosody/prosody.pid"
+
 -- Disable account creation by default, for security
 -- For more information see https://prosody.im/doc/creating_accounts
 allow_registration = false
@@ -161,8 +165,8 @@
 -- Logging configuration
 -- For advanced logging see https://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
 }
openSUSE Build Service is sponsored by