Kim Alvefur
bd8604331f
mod_posix: Exit with non-zero status code on problems
...
Previously it would default to exit with 0 as status code, meaning
success, which is weird.
2021-09-30 23:22:07 +02:00
Matthew Wild
8f059290a7
mod_posix: Hook and fire events on SIGUSR1/2
2020-10-16 14:01:25 +01:00
Kim Alvefur
33e7e5ef2d
mod_posix: Daemonize later
...
Daemonizing later means we can use that as a "successful startup"
signal and problems can be reported via exit code.
2020-09-08 22:50:43 +02:00
Kim Alvefur
f25f4bb11a
mod_posix: Remove ancient undocumented user switching
...
User switching has been done by prosodyctl or init scripts for a very
long time now, so this is not needed.
Using this would not have worked with module reloading (e.g. to reload
certificates) since ports are closed and re-bound, which would then not
be allowed.
Today there exists better ways to grant low ports, i.e. capabilities(7)
<Zash> Why do we have this?
<MattJ> Remove it
2020-08-24 19:48:47 +02:00
Kim Alvefur
a0dffb53e1
mod_posix: Add deprecation warning for the 'daemonize' option
2020-01-26 16:42:56 +01:00
Matthew Wild
5439531339
Merge 0.11->trunk
2020-01-19 15:34:28 +00:00
Matthew Wild
4167f630b8
mod_posix: Support for command-line flags to override 'daemonize' config option
...
-D / --daemonize
-F / --no-daemonize
2020-01-19 15:28:09 +00:00
Kim Alvefur
1e9a016034
mod_posix: Don't reload logging twice
...
See 18eca6afb367
2019-01-06 12:17:00 +01:00
Matthew Wild
e263a34414
mod_posix: Delay setting signal handlers until in the main thread
...
Signal handlers work by setting a debug hook. Hooks are per-thread, so we need this to be called in the main thread. However module loading is not in the main thread anymore.
2018-03-22 21:18:58 +00:00
Kim Alvefur
4c6c255113
Merge 0.10->trunk
2017-09-14 02:48:34 +02:00
Kim Alvefur
35717a1e41
loggingmanager, mod_posix: Import util.format correctly ( fixes #985 )
2017-09-11 19:32:12 +02:00
Waqas Hussain
00cb31f022
loggingmanager, mod_posix: Replace the old inconsistent log formatting with the new util.format
2017-09-10 13:05:45 -04:00
Kim Alvefur
14f5606da9
mod_posix: Ignore currently unused argument [luacheck]
2017-06-13 20:13:09 +02:00
Kim Alvefur
547eeb1267
mod_posix: Split long line [luacheck]
2017-06-13 20:10:40 +02:00
Kim Alvefur
b9401b9307
mod_posix: Use typed config API
2017-04-22 16:41:44 +02:00
Kim Alvefur
a8ab13b473
Merge 0.10->trunk
2017-06-13 20:14:06 +02:00
Kim Alvefur
706849aa1e
Merge 0.10->trunk
2017-04-24 14:19:49 +02:00
Kim Alvefur
f389cff7ea
Merge 0.10->trunk
2017-03-28 20:14:35 +02:00
Kim Alvefur
597d317427
Merge 0.10->trunk
2017-03-23 01:30:58 +01:00
Kim Alvefur
593b5348ef
mod_posix: Use path variant of config API for pidfile option
2017-03-21 12:08:29 +01:00
Kim Alvefur
d6184b31a3
util.pposix: Remove fallocate
2017-02-28 13:26:05 +01:00
Kim Alvefur
e8b57d789b
util.pposix: Add function for atomically appending data to a file
2017-03-01 01:33:00 +01:00
Kim Alvefur
5759ed4bd3
Merge 0.10->trunk
2016-11-21 02:40:47 +01:00
Kim Alvefur
fdf2a552ce
mod_posix: Use type-specific config API
2016-11-20 11:51:13 +01:00
Emmanuel Gil Peyrot
c6048a7cb4
Update every link to the documentation to use HTTPS
2016-04-16 21:08:05 +01:00
Kim Alvefur
36b5ae5e24
mod_posix: Detect failure to load util.signal by first pcall return value not by type of the second
2015-09-26 21:41:11 +02:00
Kim Alvefur
b456d66edb
mod_posix: Normalize indentation
2015-09-26 21:39:26 +02:00
Matthew Wild
878efeecd5
Merge 0.9->0.10
2014-08-28 09:23:24 +01:00
Kim Alvefur
d431f7e1ec
mod_posix: Make sure that 'pidfile' is a string
2014-08-26 12:02:41 +02:00
Kim Alvefur
bd5c779391
mod_posix: Remove compat code for 0.5
2014-04-10 00:23:35 +02:00
Kim Alvefur
4896e7ca7e
mod_posix: Daemonize by default only when installed
2014-01-26 18:35:03 +01:00
Florian Zeitz
1d833bb807
Remove all trailing whitespace
2013-08-09 17:48:21 +02:00
Matthew Wild
0ce5c766ac
mod_posix: Improve error message for a pposix version mismatch
2013-04-08 17:21:16 +01:00
Matthew Wild
f1adfcc147
mod_posix, util.pposix: Bump version for API change
2013-04-08 16:57:59 +01:00
Matthew Wild
43e7ad6680
mod_posix: Pass logger name to syslog, so that sources now get logged
2013-04-08 16:57:05 +01:00
Kim Alvefur
8f3a73f5c5
mod_posix: Log a message explaining that we are detaching from the console
2012-11-11 23:44:56 +01:00
Kim Alvefur
37ba438ad9
mod_posix: Remove console and stdout logging sinks before daemonizing
2012-11-10 23:39:22 +01:00
Matthew Wild
28322869e8
mod_posix: Remove unnecessary import of util.format (thanks luacheck and buildbot)
2019-03-26 14:59:42 +00:00
Matthew Wild
2ab785fd9f
loggingmanager, mod_posix: Move syslog to core, fixes #541 (in a way)
2019-03-26 14:48:21 +00:00
Matthew Wild
e89b006f03
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
2012-07-23 17:32:33 +01:00
Matthew Wild
bd5f9b8cbf
Merge 0.9->trunk
2012-04-29 02:10:55 +01:00
Matthew Wild
0502e8bcec
mod_posix: Support syslog_facility config option
2012-04-26 18:14:42 +01:00
Kim Alvefur
3c2e464d58
mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global()
2012-03-15 14:47:46 +01:00
Matthew Wild
7ef9dad636
mod_posix: Remove redundant import of logger.setwriter()
2010-11-04 08:41:24 +00:00
Waqas Hussain
b7e51a203d
Monster whitespace commit (beware the whitespace monster).
2010-10-16 23:00:42 +05:00
Waqas Hussain
e981541bc4
mod_posix: Updated to use the new events API.
2010-10-16 07:45:12 +05:00
Matthew Wild
50b20f4af4
util.pposix: Add pposix.uname(), bump version
2010-08-31 15:14:39 +01:00
Matthew Wild
b465aa90b9
util.pposix, prosodyctl, mod_posix: Add initgroups() function, and bump module version. prosodyctl inits groups with the groups of prosody_user. (thanks dbb)
2010-08-28 14:31:48 +01:00
Matthew Wild
b96ba1e82d
mod_posix: Some (perhaps temporary) changes to re-lock the pidfile after truncating, to avoid breaking prosodyctl
2010-07-09 01:23:54 +01:00
Brian Cully
d77e181372
mod_posix: Truncate the pidfile before writing to ensure that we never overwrite with a PID shorter than the previous, and end with an invalid PID in the file.
2010-07-09 01:16:09 +01:00