xref: /OK3568_Linux_fs/buildroot/package/prosody/0002-add-pidfile.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 124d479195ac8ec1747b5b89fe4860d0e92c2aae Mon Sep 17 00:00:00 2001
2From: Francois Perrad <francois.perrad@gadz.org>
3Date: Sun, 22 Oct 2017 08:58:11 +0200
4Subject: [PATCH] add pidfile
5
6see https://prosody.im/doc/configure#posix-only_options
7
8Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
9
10diff --git a/prosody.cfg.lua.dist b/prosody.cfg.lua.dist
11index af3cc0e4..675db12f 100644
12--- a/prosody.cfg.lua.dist
13+++ b/prosody.cfg.lua.dist
14@@ -187,6 +187,9 @@ log = {
15 -- HTTPS currently only supports a single certificate, specify it here:
16 --https_certificate = "certs/localhost.crt"
17
18+-- This must match the PIDFILE used in S50prosody
19+pidfile = "/var/run/prosody/prosody.pid"
20+
21 ----------- Virtual hosts -----------
22 -- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
23 -- Settings under each VirtualHost entry apply *only* to that host.
24--
252.11.0
26
27