From: | "Dirkjan Ochtman (djc)" <djc@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-im/prosody/files: prosody-0.6.2-cfg.lua.patch prosody.initd |
Date: | Thu, 27 May 2010 11:47:19 |
Message-Id: | 20100527114713.229072CF38@corvid.gentoo.org |
1 | djc 10/05/27 11:47:12 |
2 | |
3 | Added: prosody-0.6.2-cfg.lua.patch prosody.initd |
4 | Log: |
5 | Initial version of net-im/prosody (bug 290594). |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-im/prosody/files/prosody-0.6.2-cfg.lua.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/prosody/files/prosody-0.6.2-cfg.lua.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/prosody/files/prosody-0.6.2-cfg.lua.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: prosody-0.6.2-cfg.lua.patch |
15 | =================================================================== |
16 | --- prosody.cfg.lua.old 2010-05-27 11:10:45.000000000 +0200 |
17 | +++ prosody.cfg.lua.dist 2010-05-27 11:12:21.000000000 +0200 |
18 | @@ -16,6 +16,14 @@ |
19 | -- Settings in this section apply to the whole server and are the default settings |
20 | -- for any virtual hosts |
21 | |
22 | +prosody_user = "jabber" |
23 | +prosody_group = "jabber" |
24 | +pidfile = "/var/run/jabber/prosody.pid" |
25 | + |
26 | +log = "/var/log/jabber/prosody.log" |
27 | +-- Requires mod_posix to be loaded |
28 | +-- log = "*syslog" |
29 | + |
30 | -- This is a (by default, empty) list of accounts that are admins |
31 | -- for the server. Note that you must create the accounts separately |
32 | -- (see http://prosody.im/doc/creating_accounts for info) |
33 | |
34 | |
35 | |
36 | 1.1 net-im/prosody/files/prosody.initd |
37 | |
38 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/prosody/files/prosody.initd?rev=1.1&view=markup |
39 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/prosody/files/prosody.initd?rev=1.1&content-type=text/plain |
40 | |
41 | Index: prosody.initd |
42 | =================================================================== |
43 | #!/sbin/runscript |
44 | # Copyright 1999-2004 Gentoo Foundation |
45 | # Distributed under the terms of the GNU General Public License v2 |
46 | # $Header: /var/cvsroot/gentoo-x86/net-im/prosody/files/prosody.initd,v 1.1 2010/05/27 11:47:12 djc Exp $ |
47 | |
48 | description="Prosody is a server for Jabber/XMPP written in Lua." |
49 | description_reload="Reload configuration and reopen log files." |
50 | extra_started_commands="reload" |
51 | |
52 | PIDFILE="/var/run/jabber/prosody.pid" |
53 | USER="jabber" |
54 | COMMAND="/usr/bin/prosody" |
55 | |
56 | depend() { |
57 | use dns |
58 | need net |
59 | provide jabber-server |
60 | } |
61 | |
62 | checkconfig() { |
63 | if [ ! -e /etc/jabber/prosody.cfg.lua ] ; then |
64 | eerror "You need a /etc/jabber/prosody.cfg.lua file to run prosody" |
65 | return 1 |
66 | fi |
67 | } |
68 | |
69 | start() { |
70 | checkconfig || return 1 |
71 | ebegin "Starting Prosody XMPP Server" |
72 | start-stop-daemon --start -b --pidfile ${PIDFILE} \ |
73 | --make-pidfile --user ${USER} --exec ${COMMAND} |
74 | eend $? |
75 | } |
76 | |
77 | stop() { |
78 | ebegin "Stopping Prosody XMPP Server" |
79 | start-stop-daemon --stop --pidfile ${PIDFILE} \ |
80 | --user ${USER} --exec ${COMMAND} |
81 | eend $? |
82 | } |
83 | |
84 | reload() { |
85 | ebegin "Reloading configuration of Prosody XMPP Server" |
86 | start-stop-daemon --pidfile ${PIDFILE} --signal HUP |
87 | eend $? |
88 | } |