Mercurial > prosody-modules
annotate misc/upstart/prosody.conf @ 4877:adc6241e5d16
mod_measure_process: Report the enforced limit
The soft limit is what the kernel actually enforces, while the hard
limit is is how far you can change the soft limit without privileges.
Unless the process dynamically adjusts the soft limit, knowing the hard
limit is not as useful as knowing the soft limit.
Reporting the soft limit and the number of in-use FDs allows placing
alerts on expressions like 'process_open_fds / process_max_fds >= 0.95'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 18 Jan 2022 18:55:20 +0100 |
parents | 68b56506fa50 |
children |
rev | line source |
---|---|
2610 | 1 author "Kim Alvefur <zash@zash.se>" |
2 description "Prosody XMPP server" | |
3 | |
4 # Normal runlevel based start and stop | |
5 start on runlevel [2345] | |
6 stop on runlevel [!2345] | |
7 | |
8 # Alternate method for starting and stopping | |
9 # when a network interface comes and goes | |
10 # | |
11 # start on net-device-up IFACE=eth0 | |
12 # stop on net-device-down IFACE=eth0 | |
13 | |
14 # Change user so Prosdy doesn't have to | |
15 setgid prosody | |
16 setuid prosody | |
17 | |
18 # Set a sensible umask | |
19 umask 0027 | |
20 | |
21 # Run prosody | |
22 exec /usr/bin/prosody | |
23 | |
24 # Collect stdout into a log file | |
25 console log | |
26 | |
27 # Restart on crashes | |
28 respawn | |
29 respawn limit 5 10 |