pkgsrc/chat/prosody/patches/patch-ab
2011-09-30 08:33:54 +00:00

35 lines
1.5 KiB
Text

$NetBSD: patch-ab,v 1.3 2011/09/30 08:33:54 fhajny Exp $
enable POSIX functionality by default
set the logging paths
set up the pid files
--- prosody.cfg.lua.dist.orig 2011-06-03 15:31:34.000000000 +0000
+++ prosody.cfg.lua.dist
@@ -59,7 +59,7 @@ modules_enabled = {
--"admin_telnet"; -- Opens telnet console interface on localhost port 5582
-- Other specific functionality
- --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
+ "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
--"httpserver"; -- Serve static files from a directory over HTTP
--"groups"; -- Shared roster support
@@ -123,12 +123,15 @@ 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 = "@PROSODY_LOG@/prosody.log"; -- Change 'info' to 'debug' for verbose logging
+ error = "@PROSODY_LOG@/prosody.err";
-- "*syslog"; -- Uncomment this for logging to syslog
-- "*console"; -- Log to the console, useful for debugging with daemonize=false
}
+-- Enable PID file by default
+pidfile = "@PROSODY_RUN@/prosody.pid";
+
----------- Virtual hosts -----------
-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
-- Settings under each VirtualHost entry apply *only* to that host.