aports/community/prosody/prosody.cfg.lua.patch
2020-09-10 03:06:56 +00:00

28 lines
948 B
Diff

# Daemonize and log to syslog
--- a/prosody.cfg.lua.dist
+++ b/prosody.cfg.lua.dist
@@ -13,6 +13,9 @@
-- blanks. Good luck, and happy Jabbering!
+daemonize = true
+pidfile = "/var/run/prosody/prosody.pid"
+
---------- Server-wide settings ----------
-- Settings in this section apply to the whole server and are the default settings
-- for any virtual hosts
@@ -161,9 +164,9 @@ archive_expires_after = "1w" -- Remove archived messages after 1 week
-- 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";
- -- "*syslog"; -- Uncomment this for logging to syslog
+ -- info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging
+ -- error = "prosody.err";
+ "*syslog"; -- Uncomment this for logging to syslog
-- "*console"; -- Log to the console, useful for debugging with daemonize=false
}