Commit graph

537 commits

Author SHA1 Message Date
Richard Frith-Macdonald
85ba581bac Avoid printing misleading address information for copy of original alarm 2020-08-10 16:13:33 +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
1fddf9c9d6 Add missing newline in some logs 2020-07-31 10:41:00 +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
5d6945ee59 Add notifications about quitting 2020-07-23 07:11:26 +01:00
Richard Frith-Macdonald
2484af9894 improve commentds/doc 2020-07-20 13:16:30 +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
272f9dc9c9 Move queue handling to a separate private method 2020-07-17 15:35:10 +01:00
Richard Frith-Macdonald
d8b9b68ee5 fix typo 2020-07-17 15:34:50 +01:00
Richard Frith-Macdonald
8bcd32372b Manage record of cleared alarms 2020-07-17 13:01:28 +01:00
Richard Frith-Macdonald
56955f5604 Set up monitor when sink is first created. 2020-07-17 11:46:51 +01:00
Richard Frith-Macdonald
f9e7e80207 Include instance in process name for alarms 2020-07-17 11:14:36 +01:00
Richard Frith-Macdonald
92212e13e8 add support for alarm component matching 2020-07-16 14:15:36 +01:00
Richard Frith-Macdonald
518f015c35 support clearing of multiple alarms on one line 2020-07-16 13:36:48 +01:00
Richard Frith-Macdonald
25826e9236 provide an api for a separate object to monitor changes of the state of the alarm destination. 2020-07-16 13:35:39 +01:00
Richard Frith-Macdonald
5311f2bd64 fixup for reminder matching 2020-07-15 15:28:55 +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
41c106b867 Fix alarm rules to only match alarms and reminder interval rule to only match reminders 2020-07-15 15:07:54 +01:00
Richard Frith-Macdonald
ffb727d73c fix typos in comments 2020-07-15 15:06:51 +01:00
Richard Frith-Macdonald
2d5bf21478 Add more informative -description 2020-07-15 15:06:23 +01:00
Richard Frith-Macdonald
b34b6f2e3a Fixupes ot use key with prefix for internal defaults 2020-07-08 16:48:26 +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
dde42c13a1 Fix bug setting defaults when use of prefix should not be forced. In that case we should not prepend the defaults prefix to the key whose value is being set. 2020-07-02 09:23:48 +01:00
Richard Frith-Macdonald
dda6a439dd add comment on new macro 2020-06-29 11:29:42 +01:00
Richard Frith-Macdonald
d4dbead364 Improve logging/alarming for diagnostic stack traces and fix bug usng wrong alarm levels 2020-06-29 10:51:38 +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
9382195eb6 Add -ecUpdateRegisteredDefaults 2020-05-18 12:34:43 +01:00
Richard Frith-Macdonald
52043568cc Fix bug loading Alerter config ... should use the value from Control.plist if
AlertConfig.plist is not present
2020-04-06 12:36:06 +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
fc3dcb37b4 fixup incorrect copy 2020-03-23 13:40:51 +00:00
Richard Frith-Macdonald
69e3ccd27e Add config sharing for cooperating processes 2020-03-23 13:35:58 +00: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