File prosody-cfg.patch of Package prosody
diff -urEbw prosody-0.12.0/prosody.cfg.lua.dist prosody-0.12.0.new/prosody.cfg.lua.dist
--- prosody-0.12.0/prosody.cfg.lua.dist 2022-03-08 13:34:39.594708341 +0100
+++ prosody-0.12.0.new/prosody.cfg.lua.dist 2022-03-18 09:59:19.359175774 +0100
@@ -95,6 +95,8 @@
-- "posix"; -- POSIX functionality, sends server to background, etc.
}
+-- Unix specific
+pidfile = "@@PIDDIR@@/prosody/prosody.pid"
-- Server-to-server authentication
-- Require valid certificates for server-to-server connections?
@@ -183,8 +185,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 when running in the foreground
}