Commit graph

153 commits

Author SHA1 Message Date
Richard Frith-Macdonald
94032651b5 Allow encrypted DO to be swithed on with user default 2022-02-08 14:36:33 +00:00
Richard Frith-Macdonald
704d07f9e6 improve handling of warnings about low disk space 2022-02-07 13:26:45 +00:00
Richard Frith-Macdonald
d5b388213e -alarm: must operate in the thread that the DO connection to the Control server is in. 2021-12-14 23:04:32 +00:00
Richard Frith-Macdonald
8abf307699 Improve clearing alarms from Console 2021-12-10 10:10:50 +00:00
Richard Frith-Macdonald
f1615227e8 add missed change 2021-09-13 12:36:07 +01:00
Richard Frith-Macdonald
1a5c17b3f3 more compress/delete options 2021-09-03 11:34:52 +01:00
Richard Frith-Macdonald
96f07b21de Improve deletion of older logs 2021-09-03 10:17:38 +01:00
Richard Frith-Macdonald
a577accc51 Improve shutdown logging 2021-06-23 16:18:41 +01:00
Richard Frith-Macdonald
e911e2b373 Use status -5 for restart due to reaching MemoryMaximum 2021-06-23 15:44:18 +01:00
Richard Frith-Macdonald
b90dd9e27d Avoid recursion in attempts to contact Control server 2021-06-21 19:11:05 +01:00
Richard Frith-Macdonald
528c6125ef Improve config naming consistency and allow per-launch config of quit time 2021-06-21 09:35:36 +01:00
Richard Frith-Macdonald
1b447ab2fb Changes to support auto restart of hung processes 2021-06-20 15:56:58 +01:00
Richard Frith-Macdonald
1ed666cf0b Security code enhancement 2021-06-18 10:32:45 +01:00
Richard Frith-Macdonald
d0e74e3793 Security updates 2021-06-17 15:27:39 +01:00
Richard Frith-Macdonald
9e8199edb2 Fixup to differentiate between quit-all and terminate 2021-06-08 11:39:20 +01:00
Richard Frith-Macdonald
2cc4b78163 When we explicitly launch, mark a process as not manually stopped 2021-06-08 11:05:09 +01:00
Richard Frith-Macdonald
82cfb1637c New attempt to fix autolaunch to work in conjunction with externally started process. 2021-02-17 15:15:26 +00:00
Richard Frith-Macdonald
df1caea00b Revert last change ... it was making processes autostart after manual shutdown 2021-02-17 14:41:35 +00:00
Richard Frith-Macdonald
8ed23f03f0 After a successful manual shutdown, the desired state is no longer Dead if the launch is not disabled. 2021-02-05 11:51:51 +00:00
Richard Frith-Macdonald
75f34a259d remove client from server before clearing in launch info 2021-02-05 09:21:43 +00:00
Richard Frith-Macdonald
463f16c5cd Report (if in debug mode) when we clear a client but the launch info has a different client set. Do not raise an exception. 2021-02-05 09:18:26 +00:00
Richard Frith-Macdonald
b89e75357e Every five minutes log all the launch information 2021-01-29 15:50:32 +00:00
Richard Frith-Macdonald
7149d8e821 Fix method name in some NSLog entries and add pid information in lanch info description 2021-01-29 14:51:23 +00:00
Richard Frith-Macdonald
354ea49f94 Make sure -restart: only operates on clients which are currently active (or hung) and provide information about when the restart is likely for hung clients. Also tweak resume so that the message about launching being resumed is sent beforemessages about new processes. 2021-01-29 11:44:18 +00:00
Richard Frith-Macdonald
c75d7bb402 Make -progress logs conditional upon the CommandDebug setting, rename a process for clarity, and change the running process listing to report 'stopping' in preference to 'hung' when a hung process is being shut down. 2021-01-29 10:54:52 +00:00
Richard Frith-Macdonald
ddf15e3626 Fix logic for raising an alarm on process stop. If the process was cleanly shut down and is not set to be 'Live' then we don't need an exception. 2021-01-28 17:21:12 +00:00
Richard Frith-Macdonald
0fe10f12ed Calculate abortDate in one place. Make sure it takes the global terminate date (if any) into account. Fix bug clearing the global termination date (should never happen since, when that date is reached, the Command server should exit). 2021-01-28 16:57:16 +00:00
Richard Frith-Macdonald
1ee2997360 Fixes for process shutdown reliability and improved reporting and debug logging 2021-01-28 16:23:07 +00:00
Richard Frith-Macdonald
9289448a94 Log in every path whan stopping a process 2021-01-21 10:31:15 +00:00
Richard Frith-Macdonald
33522d10f6 Add a lot more debugging for progressing the state of a process. Log exceptions when we ask a process to reconnect to us. 2021-01-21 09:25:25 +00:00
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