Commit graph

113 commits

Author SHA1 Message Date
Richard Frith-Macdonald
8969536f35 Change 'launch all' to only launch programs which have autolaunch set. 2020-10-05 14:54:54 +01:00
Richard Frith-Macdonald
c3fb7fdbdf Don't autolaunch on config change unless autolaunch state changed: we don't want a configuration update to launch processes which were manully stopped. 2020-08-10 21:52:37 +01:00
Richard Frith-Macdonald
ad0458a30a Track raised alarms so we don't send unnecessary clears 2020-07-31 12:55:04 +01:00
Richard Frith-Macdonald
efcd21f94d Don't raise an alarm about time to startup if startup was cancelled 2020-07-31 10:40:17 +01:00
Richard Frith-Macdonald
37f53e1012 Fixes to avoid excess alarms on process termination ... wait for the process to
die rather than alarming at the point when we lose the network connection (that way we can include the process exit status in a single alarm).
2020-07-31 09:01:57 +01:00
Richard Frith-Macdonald
680dcdfbf0 Fixups for recording more audit info on loss of process 2020-07-17 19:07:35 +01:00
Richard Frith-Macdonald
394368873e add audit alarms and improve message text 2020-07-17 18:33:02 +01:00
Richard Frith-Macdonald
3c80be4ecc check for the case where a starting process is stopped during the -startup: call 2020-07-17 16:59:50 +01:00
Richard Frith-Macdonald
2da8d74c23 generate alarm clears for audit purposes when a process starts or stops 2020-07-17 15:36:06 +01:00
Richard Frith-Macdonald
58f0bcf8ec Fixes for stable timer, improved description of launch info object, fix to clear alarms for processes manually quit, make per-process alarms be owned by the Command server, clear alarmns when the config changes to remove a process from the launch list or to disable it. 2020-07-15 15:08:38 +01:00
Richard Frith-Macdonald
5cd1df2733 Make pings to clients much more frequent (once every five seconds) so that we can be more responsive to hung processes. 2020-07-06 12:04:16 +01:00
Richard Frith-Macdonald
6ca1a070f5 Record when we get a response for a ping to a client process. 2020-07-06 11:42:53 +01:00
Richard Frith-Macdonald
1ca41b9fc0 Tweaks for restarting processes 2020-07-06 11:37:47 +01:00
Richard Frith-Macdonald
6412a1cb6a use milliseconds when reporting dates 2020-07-06 10:56:31 +01:00
Richard Frith-Macdonald
b328aee8dd Add timestamp information in -description and prevent repeated alarms about hung process 2020-07-06 10:46:51 +01:00
Richard Frith-Macdonald
e15731927e Add 'list proces ...' command and fix bug in limiting shutdown time to two minutes 2020-07-06 09:55:36 +01:00
Richard Frith-Macdonald
47edde29f1 Minor bugfixes and documentation improvements. 2020-07-03 15:02:15 +01:00
Richard Frith-Macdonald
f04f1292a3 Many fixups/alterations to launch/shutdown of processes. Removed the 'strict' option to enforce a prefix on defaults keys, since it was really never used and just complicated things. 2020-07-03 11:50:25 +01:00
Richard Frith-Macdonald
bcdb6d8c5f Rewrites of EcCommand.m and remove unnecessary code in EcProcess registration 2020-06-26 19:59:55 +01:00
Richard Frith-Macdonald
9934bbbdf2 Rewrite launching to make the LaunchInfo instances control most of the work and to use individual timers for each instance with the aim of simplifying launch and shutdown logic and alarms 2020-06-24 13:26:31 +01:00
Richard Frith-Macdonald
48d84025c4 Add current compress/delete setting information to status report 2020-05-28 10:49:26 +01:00
Richard Frith-Macdonald
6d73abdd40 attempt to make restart of a process more reliable in the case where it stopped
responding to the Command server for a while.
2020-04-04 11:03:26 +01:00
Richard Frith-Macdonald
85dfbfa006 deprecate old error/alert methods 2020-01-27 15:27:57 +00:00
Richard Frith-Macdonald
aecd4f8323 reset inter-launch delay when a task is launched from the Console 2019-11-08 09:22:36 +00:00
Richard Frith-Macdonald
fa6728fff0 further simplification of restart code 2019-11-01 16:27:29 +00:00
Richard Frith-Macdonald
97b124f865 Add some comments and further simplify task shutdown. 2019-11-01 14:16:04 +00:00
Richard Frith-Macdonald
634b013efb don't kill connection when we have a succesful unregister ... the remote end
needs it to stay alive for the response.
2019-11-01 13:12:27 +00:00
Richard Frith-Macdonald
40b2c6fa7d Simplify and fix task restart issues. 2019-11-01 12:53:46 +00:00
Richard Frith-Macdonald
5af129001e Changes to improve restart and suspend of tasks in the event that a task crashes 2019-10-29 14:56:27 +00:00
Richard Frith-Macdonald
d73852fbad avoid compiler warning 2019-10-04 11:03:49 +01:00
Richard Frith-Macdonald
94413442c3 another tweak for shutdwns 2019-10-04 11:02:07 +01:00
Richard Frith-Macdonald
00eb294e4a fix typo 2019-10-04 10:49:39 +01:00
Richard Frith-Macdonald
829fe1e5ce Improve restarting flag to better reflect the state of a task 2019-10-04 10:47:18 +01:00
Richard Frith-Macdonald
a91184d959 improve clean shutdown 2019-10-03 14:36:26 +01:00
Richard Frith-Macdonald
eb6f2ccbb7 rename to avoid conflict with superclass 2019-09-25 14:22:12 +01:00
Wolfgang Lux
a1347ffc90 Fix status command not working for abbreviated process names 2019-09-25 14:38:30 +02:00
Richard Frith-Macdonald
5ebd62e8d8 Make the delay for live process check longer 2019-08-23 15:20:03 +01:00
Richard Frith-Macdonald
3eeac6e114 correction to last change 2019-08-23 15:14:34 +01:00
Richard Frith-Macdonald
3662db65da Make testing for live processes more robust 2019-08-23 15:05:16 +01:00
Richard Frith-Macdonald
f2b0a9a874 Avoid creating huge numbers of alarm clears 2019-08-06 14:43:37 +01:00
Richard Frith-Macdonald
1c561f02ca Make checking of timeouts more robust by testing to see if they are invalidated 2019-06-16 09:40:51 +01:00
Richard Frith-Macdonald
8ee4d54ea1 improvements for Command startup 2019-05-31 17:33:53 +01:00
Richard Frith-Macdonald
7c28291e50 Try to ensure better graceful shutdown. 2019-05-21 16:41:54 +01:00
Richard Frith-Macdonald
f9cb29322b Avoid premature shutdown causing core dumps 2019-05-21 16:34:31 +01:00
Richard Frith-Macdonald
cc0ffd9068 backward compat tweaks 2019-05-16 08:46:47 +01:00
Richard Frith-Macdonald
d415fd6479 improve wait time for termination 2019-05-15 13:02:10 +01:00
Richard Frith-Macdonald
1f0f34db93 improve termination command 2019-05-14 12:42:16 +01:00
Richard Frith-Macdonald
e5c6e0cd0f report autolaunchable count 2019-05-10 11:01:21 +01:00
Richard Frith-Macdonald
0a21befc31 more diagnostics 2019-05-10 10:44:58 +01:00
Richard Frith-Macdonald
9c1a262477 more diagnostics 2019-05-09 15:55:14 +01:00