aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.pposix, prosodyctl, mod_posix: Add initgroups() function, and bump ↵Matthew Wild2010-08-281-1/+1
| | | | module version. prosodyctl inits groups with the groups of prosody_user. (thanks dbb)
* mod_posix: Some (perhaps temporary) changes to re-lock the pidfile after ↵Matthew Wild2010-07-091-2/+6
| | | | truncating, to avoid breaking prosodyctl
* mod_posix: Truncate the pidfile before writing to ensure that we never ↵Brian Cully2010-07-091-0/+5
| | | | overwrite with a PID shorter than the previous, and end with an invalid PID in the file.
* Merge 0.7->trunkWaqas Hussain2010-05-071-0/+1
|\
| * Merge 0.6->0.7Waqas Hussain2010-05-071-0/+1
| |\
| | * mod_posix: Fixed a global access.Waqas Hussain2010-05-071-0/+1
| | |
* | | mod_posix: Don't add a server-starting event handler while the ↵Waqas Hussain2010-05-071-10/+12
|/ / | | | | | | server-starting event is being fired.
* | Merge 0.6->0.7Matthew Wild2010-03-221-2/+2
|\|
| * Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
| |
| * mod_posix: Adjust file open mode depending on whether file exists (take that ↵Matthew Wild2010-01-131-1/+3
| | | | | | | | fopen designers!!!)
| * mod_posix: Lock pidfile when in use, shut down if we can't write or lock the ↵Matthew Wild2010-01-101-12/+23
| | | | | | | | pidfile
* | mod_posix: Adjust file open mode depending on whether file exists (take that ↵Matthew Wild2010-01-131-1/+3
| | | | | | | | fopen designers!!!)
* | util.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdirMatthew Wild2010-01-121-1/+1
| |
* | mod_posix: Lock pidfile when in use, shut down if we can't write or lock the ↵Matthew Wild2010-01-101-12/+23
| | | | | | | | pidfile
* | mod_posix: Set umask to 'umask' from the config, or 027Matthew Wild2010-01-101-0/+3
| |
* | util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in ↵Matthew Wild2010-01-101-1/+1
| | | | | | | | mod_posix)
* | mod_posix: Remove the lines added to work around the util.signal loop bugMatthew Wild2010-01-101-2/+0
| |
* | mod_posix: Fix to not loop in SIGTERM either, but the same happens with ↵Matthew Wild2009-12-081-1/+2
| | | | | | | | SIGHUP (where the same 'fix' can't be applied) - shall investigate tomorrow
* | mod_posix: Set empty SIGINT handler when a SIGINT is caughtMatthew Wild2009-12-081-0/+1
| |
* | mod_posix: Catch SIGINTMatthew Wild2009-12-071-0/+7
|/
* mod_posix: Log warning when no_daemonize is used, and instruct on how to ↵Matthew Wild2009-11-081-1/+6
| | | | update config
* mod_posix: Switch config option to 'daemonize', fall back to 'no_daemonize' ↵Matthew Wild2009-11-081-1/+6
| | | | if not set, default behaviour remains the same... daemonize if mod_posix is loaded
* Merge waqas with Tobias. Eww.Matthew Wild2009-08-181-7/+6
|\
| * mod_posix: Updated to use module:get_option instead of configmanagerWaqas Hussain2009-08-131-4/+3
| |
* | Shutdown prosody if changing user or group fails.Tobias Markmann2009-08-151-4/+14
| |
* | Make mod_posix not complain about root user, if setuid is set to something ↵Tobias Markmann2009-08-151-4/+7
| | | | | | | | different as root.
* | Add setuid and setgid support.Tobias Markmann2009-08-151-0/+14
|/
* pposix, mod_posix: Bump pposix version numberMatthew Wild2009-07-231-1/+1
|
* Add copyright header to those files missing oneMatthew Wild2009-07-101-0/+8
|
* mod_posix: Use global prosody objectMatthew Wild2009-05-301-6/+8
|
* mod_posix: Reload the config and reopen log files on SIGHUPMatthew Wild2009-05-051-7/+9
|
* mod_posix: Don't let the server run as root without the magic run_as_root in ↵Matthew Wild2009-05-021-0/+9
| | | | config
* mod_posix: Fix calls to log() (replace with module:log) and make some global ↵Matthew Wild2009-04-231-11/+11
| | | | accesses explicit
* mod_posix: Fix for removing the pidfile on exitMatthew Wild2009-04-231-1/+1
|
* mod_posix: Remove some debug coooooooooodeMatthew Wild2009-04-221-1/+0
|
* mod_posix: Integrate with loggingmanager, register syslog sink, remove ↵Matthew Wild2009-04-221-36/+15
| | | | redundant logging code
* mod_posix: Remove pidfile on exitMatthew Wild2009-04-221-1/+16
|
* mod_posix: Allow logging and pidfile options to take effect without needing ↵Matthew Wild2009-04-121-45/+72
| | | | to daemonize. Add the ability to catch SIGTERM.
* mod_posix: logging fixMatthew Wild2009-01-161-1/+1
|
* Fix for pposix version detectionMatthew Wild2009-01-161-2/+2
|
* mod_posix: Check version of pposixMatthew Wild2009-01-161-0/+4
|
* mod_posix/pposix: Fix reporting of incorrect PID on daemonization. Log ↵Matthew Wild2009-01-151-2/+12
| | | | correct PID, and support writing a pidfile (pidfile = '/path/to/prosody.pid' in config). Added getpid() to pposix and improved function names.
* mod_posix: Support for logging to syslog (log = 'syslog' in config)Matthew Wild2009-01-151-1/+11
|
* Small logging adjustment for mod_posixMatthew Wild2008-12-071-3/+1
|
* Add mod_posix, fixes #5Matthew Wild2008-12-061-0/+50