Commit graph

123 commits

Author SHA1 Message Date
Richard Frith-Macdonald
e2a980231a Fix a leak and some dead assignments. 2021-01-14 09:14:32 +00:00
Richard Frith-Macdonald
154f4f7a2d Add check that we do not launch a task while we already have one recorded. 2021-01-07 11:20:47 +00:00
Richard Frith-Macdonald
68b560b62b Improve tolerance (and logging) of re-entrancy in -starting: method. 2020-11-24 01:26:55 +00:00
Richard Frith-Macdonald
86f84e101f Add configuration to permit easy running of processes under valgrind and to
manage the valgrind logs (in the debug area in a subdirectory 'Valgrind').
2020-11-14 11:39:25 +00:00
Richard Frith-Macdonald
c796ed2bdf When abandoning an unlaunched process, call -stopped to make sure it's in a sane state to launch again. 2020-10-28 09:51:38 +00:00
Richard Frith-Macdonald
56bc1a6958 Fixup for restart after quite while suspended 2020-10-27 10:00:47 +00:00
Richard Frith-Macdonald
dfa7447593 when quitting all processes, check for ones where startup is abandoned 2020-10-27 09:46:34 +00:00
Richard Frith-Macdonald
e82865d61f fix messages for -2 and -3 exist statuses (wrong way round) 2020-10-19 16:59:44 +01:00
Richard Frith-Macdonald
e43ccf9ca9 Attempt to rationalise process exit status values. 2020-10-17 17:13:26 +01:00
Richard Frith-Macdonald
08fee2c40e Improve recording of process exist status (whether or not it is a signal, and
negative status values), and fix logic to restart processes which exit with a non-zero status if autolaunch is enabled for them.
2020-10-16 14:24:22 +01:00
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