paulc
a5a06cb5ad
Supervisor improvments by Allan Sandfeld Jensen: display child's normal exit code, send SIGABRT to an unresponsive child if -C was used.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3379 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 08:35:42 +00:00
paulc
63e386addb
Include the node name in the engine status and the default rmanager greeting.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3352 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-28 17:07:49 +00:00
paulc
8e07545b79
Double the system idle interval when running in client mode, make it adjustable from the config file.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3163 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-31 09:36:58 +00:00
paulc
f449fd6d51
Display the name of the shared object in SLib destructor to aid in debugging unload order.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3045 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-30 20:33:11 +00:00
paulc
38be63b452
Allow overriding DLL_SUFFIX (.yate) and CFG_SUFFIX (.conf) at compile time.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3042 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-27 16:44:19 +00:00
paulc
3d932d62c3
When started in interactive mode (not daemonified) shutdown on receiving SIGHUP since the console was closed.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3040 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-27 12:07:51 +00:00
paulc
66b8ce7ca2
When explicitely signalling the supervisor to restart the child reset the run delay time back to minimum.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3021 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-16 20:40:03 +00:00
oana
9554d2edb6
Added counter for number of restarts in supervised mode. Counter value added to Engine::runParams().
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3010 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-07 12:11:09 +00:00
paulc
1d9f358e7f
Abort further module loading and initialization if engine is exiting.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3000 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-28 13:20:07 +00:00
paulc
966a1201b9
Added possibility to repeat the -Dm option to halve the mutex maximum wait time.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2982 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-10 11:20:50 +00:00
paulc
a2812051f2
Added Semaphore class, made Mutex derive from (new class) Lockable, made Lock able to get a lock on any Lockable - Mutex or Semaphore.
...
Use pthread_mutex_timedlock and sem_timedwait if available on platform.
Fixed a bug in the IAX channel exposed by Mutex having virtual methods.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2761 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-22 12:57:14 +00:00
paulc
371c004e61
Allow server command line options when running in ClientProxy mode.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2760 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-14 18:47:06 +00:00
paulc
fe9c1c1c98
Added a ClientProxy engine run mode for clients with no local UI.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2759 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-14 15:49:20 +00:00
paulc
f4b1496a46
Added an unified Thread::idle method, use it instead of arbitrary
...
sleeps.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2737 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-24 16:47:29 +00:00
paulc
5499650213
Changed thread names to be uniform and easily readable.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2733 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-22 14:48:26 +00:00
paulc
c0eec08096
Make use of prctl() if available.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2729 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-22 11:09:38 +00:00
paulc
bad4b42a73
Added engine config section so individual modules that depend on buggy
...
libraries are never unloaded from memory, only finalized if possible.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2722 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-18 17:44:48 +00:00
paulc
a6a9d71e8f
Allow skipping mutex operations until main() on platforms where mutexes
...
are unsafe in global object constructors.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2721 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-18 12:21:23 +00:00
paulc
55df1c3620
Correctly provide a format string as we cannot guarantee the string content is printf safe.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2682 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-04 14:01:17 +00:00
paulc
6dfcdcbd11
Fixed several warnings detected by stricter compilers.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2679 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-01 20:05:02 +00:00
marian
3996128f3a
Added engine checker class. Added check point after parsing the command line and changing current directory.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2559 acf43c95-373e-0410-b603-e72c3f656dc1
2009-04-02 14:35:51 +00:00
paulc
74c7221713
Added runtime option -t to truncate existing log file instead of appending to it.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2496 acf43c95-373e-0410-b603-e72c3f656dc1
2009-02-26 16:26:55 +00:00
paulc
60c12fd42e
Warn about missing HOME for user files only in client mode.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2267 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-19 16:28:54 +00:00
paulc
6dfd29ed8c
Avoid creating the user data directory when just showing usage help.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2260 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-14 21:32:45 +00:00
paulc
97c6ccf207
Added API and command line parameter to change user data directory at runtime.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2259 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-14 20:15:33 +00:00
paulc
77abc29abe
Exponential backoff delay on child respawn, allow system to breathe if Yate keeps crashing or locking up.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2231 acf43c95-373e-0410-b603-e72c3f656dc1
2008-09-21 14:43:23 +00:00
paulc
9b65c8c398
Allow overriding the user config dir name at compile time.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2102 acf43c95-373e-0410-b603-e72c3f656dc1
2008-07-25 18:00:04 +00:00
paulc
30de9c188d
Supervisor waits until a blocked child finishes cleaning up after SIGKILL.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2035 acf43c95-373e-0410-b603-e72c3f656dc1
2008-06-24 16:44:16 +00:00
paulc
2c49ec0c58
Rotate logs synchronously, not in signal handler - should fix bug #120
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1967 acf43c95-373e-0410-b603-e72c3f656dc1
2008-05-01 14:01:53 +00:00
paulc
a230bd49b5
New option -F to increase maximum file handle instead of running ulimit -n.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1751 acf43c95-373e-0410-b603-e72c3f656dc1
2008-03-10 15:40:54 +00:00
paulc
2ab1ec12c7
Bumped version to 2.0.0 alpha2 and made --version report code status.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1713 acf43c95-373e-0410-b603-e72c3f656dc1
2008-02-04 12:54:30 +00:00
paulc
fac2ac157d
Mark in list with an asterisk modules with unload capability.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1681 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-26 17:33:42 +00:00
paulc
1e64633335
Added module reload, filter out invalid completion for modules load/reload.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1680 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-26 17:29:05 +00:00
paulc
5afbf2744b
Fixed help and command line completion.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1678 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-25 18:19:03 +00:00
paulc
325a06fda8
Added clustering in Windows, fixed unload support.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1669 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-24 22:59:37 +00:00
paulc
f2fa3236b6
Added module loading and unloading support.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1668 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-24 21:09:41 +00:00
paulc
ee59b2d42c
Added a list of run instance parameters to the engine, access from extmodule.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1665 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-24 11:43:04 +00:00
paulc
6ca62a64ca
Added node name (for clustering) and use it in heartbeat and regexroute.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1651 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-19 11:19:52 +00:00
paulc
6063d1b43e
Added capability for plugins to request early init order.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1496 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-26 23:56:37 +00:00
paulc
4ea5eded9e
Changes required for VS 2005 and Yate 2
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1486 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-26 12:01:09 +00:00
paulc
b42a894ddc
Directory reorder #3
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1476 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-15 23:06:36 +00:00
paulc
ffc6d43882
Warn about handling messages that are expected to be broadcasted.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1428 acf43c95-373e-0410-b603-e72c3f656dc1
2007-08-23 08:20:40 +00:00
paulc
657da65c74
Supervisor reaps all children, not just one, before starting new child.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1424 acf43c95-373e-0410-b603-e72c3f656dc1
2007-08-15 12:28:57 +00:00
paulc
b9dd361c2c
Supervisor waits up to 30 seconds for child to start. Childrens are reaped
...
before starting a new one.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1423 acf43c95-373e-0410-b603-e72c3f656dc1
2007-08-09 10:48:58 +00:00
paulc
4463ffd256
Restore the keyboard interrupt handler early so a hung process can be
...
killed from keyboard by pressing ^C twice.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1414 acf43c95-373e-0410-b603-e72c3f656dc1
2007-07-31 15:14:09 +00:00
paulc
6f2c70aa86
Added support for multiple module directories, can be specified from the
...
command line.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1405 acf43c95-373e-0410-b603-e72c3f656dc1
2007-07-23 16:18:18 +00:00
paulc
e84ba5f7bd
Added support for setting timer resolution in Windows
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1327 acf43c95-373e-0410-b603-e72c3f656dc1
2007-05-16 12:10:44 +00:00
paulc
e39385fdd5
Use TelEngine::destruct(obj) or GenObject::destruct() wherever applicable.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1325 acf43c95-373e-0410-b603-e72c3f656dc1
2007-05-15 15:40:50 +00:00
paulc
25f9f72297
Engine's running mode can be read by any component.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1233 acf43c95-373e-0410-b603-e72c3f656dc1
2007-03-26 17:38:50 +00:00
paulc
cdfe3b5884
Relaxed timings of supervisor sanity checks on startup.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1229 acf43c95-373e-0410-b603-e72c3f656dc1
2007-03-26 15:07:42 +00:00