Log

plugins/mod_posix.lua @ 13270:14bbfb2cc8dd default tip

description author age
plugins: Prefix module imports with prosody namespace Kim Alvefur Fri, 24 Mar 2023 13:15:28 +0100
mod_posix: Run signal handlers in the startup thread Kim Alvefur Wed, 06 Oct 2021 14:50:47 +0200
mod_posix: Exit with non-zero status code on problems Kim Alvefur Thu, 30 Sep 2021 23:22:07 +0200
mod_posix: Hook and fire events on SIGUSR1/2 Matthew Wild Fri, 16 Oct 2020 14:01:25 +0100
mod_posix: Daemonize later Kim Alvefur Tue, 08 Sep 2020 22:50:43 +0200
mod_posix: Remove ancient undocumented user switching Kim Alvefur Mon, 24 Aug 2020 19:48:47 +0200
mod_posix: Add deprecation warning for the 'daemonize' option Kim Alvefur Sun, 26 Jan 2020 16:42:56 +0100
Merge 0.11->trunk Matthew Wild Sun, 19 Jan 2020 15:34:28 +0000
mod_posix: Support for command-line flags to override 'daemonize' config option 0.11 Matthew Wild Sun, 19 Jan 2020 15:28:09 +0000
mod_posix: Remove unnecessary import of util.format (thanks luacheck and buildbot) Matthew Wild Tue, 26 Mar 2019 14:59:42 +0000
loggingmanager, mod_posix: Move syslog to core, fixes #541 (in a way) Matthew Wild Tue, 26 Mar 2019 14:48:21 +0000
mod_posix: Don't reload logging twice 0.11 Kim Alvefur Sun, 06 Jan 2019 12:17:00 +0100
mod_posix: Delay setting signal handlers until in the main thread Matthew Wild Thu, 22 Mar 2018 21:18:58 +0000
Merge 0.10->trunk Kim Alvefur Thu, 14 Sep 2017 02:48:34 +0200
loggingmanager, mod_posix: Import util.format correctly (fixes #985) Kim Alvefur Mon, 11 Sep 2017 19:32:12 +0200
loggingmanager, mod_posix: Replace the old inconsistent log formatting with the new util.format Waqas Hussain Sun, 10 Sep 2017 13:05:45 -0400
Merge 0.10->trunk Kim Alvefur Tue, 13 Jun 2017 20:14:06 +0200
mod_posix: Ignore currently unused argument [luacheck] Kim Alvefur Tue, 13 Jun 2017 20:13:09 +0200
mod_posix: Split long line [luacheck] Kim Alvefur Tue, 13 Jun 2017 20:10:40 +0200
Merge 0.10->trunk Kim Alvefur Mon, 24 Apr 2017 14:19:49 +0200
mod_posix: Use typed config API Kim Alvefur Sat, 22 Apr 2017 16:41:44 +0200
Merge 0.10->trunk Kim Alvefur Tue, 28 Mar 2017 20:14:35 +0200
util.pposix: Remove fallocate Kim Alvefur Tue, 28 Feb 2017 13:26:05 +0100
util.pposix: Add function for atomically appending data to a file Kim Alvefur Wed, 01 Mar 2017 01:33:00 +0100
Merge 0.10->trunk Kim Alvefur Thu, 23 Mar 2017 01:30:58 +0100
mod_posix: Use path variant of config API for pidfile option Kim Alvefur Tue, 21 Mar 2017 12:08:29 +0100
Merge 0.10->trunk Kim Alvefur Mon, 21 Nov 2016 02:40:47 +0100
mod_posix: Use type-specific config API Kim Alvefur Sun, 20 Nov 2016 11:51:13 +0100
Update every link to the documentation to use HTTPS Emmanuel Gil Peyrot Sat, 16 Apr 2016 21:08:05 +0100
mod_posix: Detect failure to load util.signal by first pcall return value not by type of the second Kim Alvefur Sat, 26 Sep 2015 21:41:11 +0200
mod_posix: Normalize indentation Kim Alvefur Sat, 26 Sep 2015 21:39:26 +0200
Merge 0.9->0.10 Matthew Wild Thu, 28 Aug 2014 09:23:24 +0100
mod_posix: Make sure that 'pidfile' is a string Kim Alvefur Tue, 26 Aug 2014 12:02:41 +0200
mod_posix: Remove compat code for 0.5 Kim Alvefur Thu, 10 Apr 2014 00:23:35 +0200
mod_posix: Daemonize by default only when installed Kim Alvefur Sun, 26 Jan 2014 18:35:03 +0100
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
mod_posix: Improve error message for a pposix version mismatch Matthew Wild Mon, 08 Apr 2013 17:21:16 +0100
mod_posix, util.pposix: Bump version for API change Matthew Wild Mon, 08 Apr 2013 16:57:59 +0100
mod_posix: Pass logger name to syslog, so that sources now get logged Matthew Wild Mon, 08 Apr 2013 16:57:05 +0100
mod_posix: Log a message explaining that we are detaching from the console Kim Alvefur Sun, 11 Nov 2012 23:44:56 +0100
mod_posix: Remove console and stdout logging sinks before daemonizing Kim Alvefur Sat, 10 Nov 2012 23:39:22 +0100
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages Matthew Wild Mon, 23 Jul 2012 17:32:33 +0100
Merge 0.9->trunk Matthew Wild Sun, 29 Apr 2012 02:10:55 +0100
mod_posix: Support syslog_facility config option Matthew Wild Thu, 26 Apr 2012 18:14:42 +0100
mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global() Kim Alvefur Thu, 15 Mar 2012 14:47:46 +0100
mod_posix: Remove redundant import of logger.setwriter() Matthew Wild Thu, 04 Nov 2010 08:41:24 +0000
Monster whitespace commit (beware the whitespace monster). Waqas Hussain Sat, 16 Oct 2010 23:00:42 +0500
mod_posix: Updated to use the new events API. Waqas Hussain Sat, 16 Oct 2010 07:45:12 +0500
util.pposix: Add pposix.uname(), bump version Matthew Wild Tue, 31 Aug 2010 15:14:39 +0100
util.pposix, prosodyctl, mod_posix: Add initgroups() function, and bump module version. prosodyctl inits groups with the groups of prosody_user. (thanks dbb) Matthew Wild Sat, 28 Aug 2010 14:31:48 +0100
mod_posix: Some (perhaps temporary) changes to re-lock the pidfile after truncating, to avoid breaking prosodyctl Matthew Wild Fri, 09 Jul 2010 01:23:54 +0100
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. Brian Cully Fri, 09 Jul 2010 01:16:09 +0100
Merge 0.7->trunk Waqas Hussain Fri, 07 May 2010 16:21:04 +0500
Merge 0.6->0.7 Waqas Hussain Fri, 07 May 2010 16:17:48 +0500
mod_posix: Fixed a global access. Waqas Hussain Fri, 07 May 2010 16:04:45 +0500
mod_posix: Don't add a server-starting event handler while the server-starting event is being fired. Waqas Hussain Fri, 07 May 2010 07:18:09 +0500
Merge 0.6->0.7 Matthew Wild Mon, 22 Mar 2010 17:24:55 +0000
Update copyright headers for 2010 Matthew Wild Mon, 22 Mar 2010 17:06:15 +0000
mod_posix: Adjust file open mode depending on whether file exists (take that fopen designers!!!) Matthew Wild Wed, 13 Jan 2010 00:03:22 +0000
mod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile Matthew Wild Sun, 10 Jan 2010 23:49:38 +0000
mod_posix: Adjust file open mode depending on whether file exists (take that fopen designers!!!) Matthew Wild Wed, 13 Jan 2010 00:03:22 +0000
util.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdir Matthew Wild Tue, 12 Jan 2010 15:35:36 +0000
mod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile Matthew Wild Sun, 10 Jan 2010 23:49:38 +0000
mod_posix: Set umask to 'umask' from the config, or 027 Matthew Wild Sun, 10 Jan 2010 22:15:15 +0000
util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix) Matthew Wild Sun, 10 Jan 2010 21:48:25 +0000
mod_posix: Remove the lines added to work around the util.signal loop bug Matthew Wild Sun, 10 Jan 2010 14:09:17 +0000
mod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where the same 'fix' can't be applied) - shall investigate tomorrow Matthew Wild Tue, 08 Dec 2009 01:24:16 +0000
mod_posix: Set empty SIGINT handler when a SIGINT is caught Matthew Wild Tue, 08 Dec 2009 01:16:24 +0000
mod_posix: Catch SIGINT Matthew Wild Mon, 07 Dec 2009 18:38:35 +0000
mod_posix: Log warning when no_daemonize is used, and instruct on how to update config Matthew Wild Sun, 08 Nov 2009 15:25:03 +0000
mod_posix: Switch config option to 'daemonize', fall back to 'no_daemonize' if not set, default behaviour remains the same... daemonize if mod_posix is loaded Matthew Wild Sun, 08 Nov 2009 15:10:44 +0000
Merge waqas with Tobias. Eww. Matthew Wild Tue, 18 Aug 2009 13:03:35 +0100
mod_posix: Updated to use module:get_option instead of configmanager Waqas Hussain Thu, 13 Aug 2009 16:55:44 +0500
Shutdown prosody if changing user or group fails. Tobias Markmann Sat, 15 Aug 2009 12:30:43 +0200
Make mod_posix not complain about root user, if setuid is set to something different as root. Tobias Markmann Sat, 15 Aug 2009 12:19:07 +0200
Add setuid and setgid support. Tobias Markmann Sat, 15 Aug 2009 12:17:27 +0200
pposix, mod_posix: Bump pposix version number Matthew Wild Thu, 23 Jul 2009 03:47:06 +0100
Add copyright header to those files missing one Matthew Wild Fri, 10 Jul 2009 03:08:38 +0100
mod_posix: Use global prosody object Matthew Wild Sat, 30 May 2009 14:05:42 +0100
Merge with 0.4 Matthew Wild Tue, 05 May 2009 14:20:26 +0100
mod_posix: Reload the config and reopen log files on SIGHUP Matthew Wild Tue, 05 May 2009 14:19:45 +0100
Merge with 0.4 Matthew Wild Sun, 03 May 2009 01:11:21 +0100
mod_posix: Don't let the server run as root without the magic run_as_root in config Matthew Wild Sat, 02 May 2009 20:32:43 +0100
Merge with 0.4 Matthew Wild Wed, 29 Apr 2009 02:08:55 +0100
mod_posix: Fix calls to log() (replace with module:log) and make some global accesses explicit Matthew Wild Thu, 23 Apr 2009 21:35:24 +0100
mod_posix: Fix for removing the pidfile on exit Matthew Wild Thu, 23 Apr 2009 21:34:03 +0100
Merge with 0.4 branch Matthew Wild Thu, 23 Apr 2009 03:28:35 +0100
mod_posix: Remove some debug coooooooooode Matthew Wild Wed, 22 Apr 2009 21:42:19 +0100
mod_*: Fix a load of global accesses Matthew Wild Wed, 22 Apr 2009 21:32:23 +0100
mod_posix: Integrate with loggingmanager, register syslog sink, remove redundant logging code Matthew Wild Wed, 22 Apr 2009 20:01:19 +0100
mod_posix: Remove pidfile on exit Matthew Wild Wed, 22 Apr 2009 19:59:58 +0100
mod_posix: Allow logging and pidfile options to take effect without needing to daemonize. Add the ability to catch SIGTERM. Matthew Wild Sun, 12 Apr 2009 02:57:52 +0100
mod_posix: logging fix Matthew Wild Fri, 16 Jan 2009 05:41:59 +0000
Fix for pposix version detection Matthew Wild Fri, 16 Jan 2009 05:40:40 +0000
mod_posix: Check version of pposix Matthew Wild Fri, 16 Jan 2009 05:18:38 +0000
mod_posix/pposix: Fix reporting of incorrect PID on daemonization. Log correct PID, and support writing a pidfile (pidfile = '/path/to/prosody.pid' in config). Added getpid() to pposix and improved function names. Matthew Wild Thu, 15 Jan 2009 20:59:36 +0000
mod_posix: Support for logging to syslog (log = 'syslog' in config) Matthew Wild Thu, 15 Jan 2009 20:06:41 +0000
Small logging adjustment for mod_posix Matthew Wild Sun, 07 Dec 2008 03:12:56 +0000
Add mod_posix, fixes #5 Matthew Wild Sat, 06 Dec 2008 23:21:55 +0000