summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/BuiltinCore.py
Commit message (Collapse)AuthorAgeFilesLines
* Catch possible typeerror resulting from None being returned when reading the ↵Matt Kemp2014-10-021-1/+1
| | | | pid.
* Fixes to ensure pidfile can be opened or broken if stale.Matt Kemp2014-10-011-1/+4
|
* pylint fixes.Matt Kemp2014-10-011-3/+4
|
* Attempt to break the pid lock during startup.Matt Kemp2014-10-011-7/+15
| | | | | | | | This commit attempts to break the pidfilelock during startup in cases where the process may have exited without successfully cleaning up the lockfile. It also attempts to grab the lock before opening the context. Also applied to the Collector module, which may have been looking for the wrong exception since it does not rely on a timeout.
* SSLServer: Poll for POST data correctlyChris St. Pierre2013-08-281-1/+0
| | | | | | | | This updates the do_POST() code to cleave more closely to the code in SimpleXMLRPCHandler.do_POST (plus SSL magic, of course). In doing so, it eliminates a select() call whose timeouts were not handled properly, and which thus left stray idle processes around after incomplete XML-RPC calls.
* Make the server process always detach, even if started by initArto Jantunen2013-07-211-1/+2
| | | | | Otherwise startup with systemd in type=forking fails since the daemon will not fork.
* BuiltinCore: register server instance after plugins are loadedChris St. Pierre2013-05-071-1/+1
|
* BuiltinCore: gracefully handle existing lock on pidfileChris St. Pierre2013-04-161-4/+10
|
* PY3K: Fix client/server to work with python 3Sol Jerome2013-04-101-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* BuiltinCore: fixed import of LockFailedChris St. Pierre2012-11-191-2/+3
|
* fail gracefully when pidfile creation failsChris St. Pierre2012-11-191-5/+10
|
* set default umask for server, added option to change itChris St. Pierre2012-11-141-10/+8
|
* BuiltinCore: removed unused import osChris St. Pierre2012-10-181-1/+0
|
* fixed server core instantiation when running in foregroundChris St. Pierre2012-10-181-7/+11
|
* fix return value from _daemonizeChris St. Pierre2012-10-181-0/+1
|
* use daemon.pid[lock]file.PIDLockFile to write PID fileChris St. Pierre2012-10-181-19/+7
|
* documented core implementationsChris St. Pierre2012-10-151-8/+32
|
* added module-level Bcfg2.Statistics object for easier trackingChris St. Pierre2012-10-101-1/+5
|
* drop privs options added, works in CherryPyChris St. Pierre2012-10-041-1/+3
|
* moved pidfile creation into the server backendsChris St. Pierre2012-09-251-1/+15
|
* expanded pylint testsChris St. Pierre2012-09-251-37/+8
|
* run pylint for errors on almost everything, full runs on some selected stuffChris St. Pierre2012-09-251-1/+1
|
* fixed gamin issues with late daemonizationChris St. Pierre2012-09-181-1/+2
|
* updated various scripts/components to reflect updated Core invocation for ↵Chris St. Pierre2012-09-051-2/+2
| | | | thread-safety
* Core: fixed threading issues preventing successful daemonization of builtin coreChris St. Pierre2012-09-041-15/+24
|
* Core: collect more performance statisticsChris St. Pierre2012-08-301-2/+1
|
* made bcfg2-admin perf work againChris St. Pierre2012-08-291-1/+2
|
* renamed Bcfg2Py3k to CompatChris St. Pierre2012-08-271-1/+1
|
* Server: Fix server startupSol Jerome2012-07-201-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* added CherryPy-based server coreChris St. Pierre2012-07-191-0/+102