summaryrefslogtreecommitdiff
path: root/net-im/prosody/files
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net-im/prosody/files/prosody-0.8.0.cfg.lua.patch26
-rw-r--r--net-im/prosody/files/prosody.initd4
2 files changed, 28 insertions, 2 deletions
diff --git a/net-im/prosody/files/prosody-0.8.0.cfg.lua.patch b/net-im/prosody/files/prosody-0.8.0.cfg.lua.patch
new file mode 100644
index 0000000..a5cbab2
--- /dev/null
+++ b/net-im/prosody/files/prosody-0.8.0.cfg.lua.patch
@@ -0,0 +1,26 @@
+--- prosody.cfg.lua.dist.old 2011-01-13 02:29:32.000000000 +0100
++++ prosody.cfg.lua.dist 2011-01-14 17:17:28.000000000 +0100
+@@ -114,15 +114,20 @@
+ -- to update the logrotate config at /etc/logrotate.d/prosody
+ log = {
+ -- Log all error messages to prosody.err
+- error = "/var/log/prosody/prosody.err";
++ error = "/var/log/jabber/prosody.err";
+ -- Log everything of level "info" and higher (that is, all except "debug" messages)
+ -- to prosody.log
+- info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for more verbose logging
++ info = "/var/log/jabber/prosody.log"; -- Change 'info' to 'debug' for more verbose logging
+ --"*syslog"; -- Uncomment this for logging to syslog
+ }
+
+ -- Pidfile, used by prosodyctl and the init.d script
+-pidfile = "/var/run/prosody/prosody.pid";
++pidfile = "/var/run/jabber/prosody.pid";
++
++-- User and group, used for daemon
++prosody_user = "jabber";
++prosody_group = "jabber";
++
+
+ ----------- Virtual hosts -----------
+ -- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
diff --git a/net-im/prosody/files/prosody.initd b/net-im/prosody/files/prosody.initd
index 02a1fdc..9cb1340 100644
--- a/net-im/prosody/files/prosody.initd
+++ b/net-im/prosody/files/prosody.initd
@@ -1,14 +1,14 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/prosody/files/prosody.initd,v 1.1 2010/05/27 11:47:12 djc Exp $
+# $Header: $
description="Prosody is a server for Jabber/XMPP written in Lua."
description_reload="Reload configuration and reopen log files."
extra_started_commands="reload"
PIDFILE="/var/run/jabber/prosody.pid"
-USER="jabber"
+USER="jabber:jabber"
COMMAND="/usr/bin/prosody"
depend() {