fix(deploy): halkyon.li's heavy sidecars started after every boot (ADR 0039, D6)
A reboot or a power cut between 01:55 and 05:00 left them stopped until the next morning: halkyon-morning.timer now also fires two minutes after boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
71cc1cac5d
commit
086b980947
1 changed files with 20 additions and 2 deletions
|
|
@ -137,6 +137,20 @@ void main() {
|
|||
expect(setting(evening, 'ExecStart'), contains('night.sh stop'));
|
||||
expect(setting(morning, 'ExecStart'), contains('night.sh start'));
|
||||
});
|
||||
|
||||
test('starts the heavy sidecars after every boot too', () {
|
||||
// A reboot or a power cut between 01:55 and 05:00 would otherwise leave them
|
||||
// stopped (unless-stopped keeps a stopped container so) until the next morning;
|
||||
// the runner's own timer never catches up, so nothing clashes with it.
|
||||
expect(
|
||||
setting(read('deploy/runner/halkyon-morning.timer'), 'OnBootSec'),
|
||||
isNotNull,
|
||||
);
|
||||
expect(
|
||||
setting(read('deploy/runner/forgejo-runner.timer'), 'Persistent'),
|
||||
'false',
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue