diff options
author | David Timber <dxdt@dev.snart.me> | 2022-11-26 17:10:23 +0800 |
---|---|---|
committer | David Timber <dxdt@dev.snart.me> | 2022-11-26 17:22:59 +0800 |
commit | 2b1f0f62a5d8cddcb874924f2a7b83dc108c69e6 (patch) | |
tree | d35e4db977234c2efda7c55e9173077d3e709a8f /README.md | |
parent | 6789c980678f46a602d9f82bfc0ec2a3d52a645e (diff) |
Add 'boot-wait' and 'delay' in boot-report ...
- Impl 'boot-wait': 'systemd'
- Fix typos, spelling error, indentation errors in doc
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 50 |
1 files changed, 27 insertions, 23 deletions
@@ -202,7 +202,7 @@ reduce IO seek time. } ``` -On start, the objects in "root" and "http" groups will be built simultanesouly. +On start, the objects in "root" and "http" groups will be built simultaneously. On completion of all the objects in "http", the objects in the group "sql" and "ldap" will be built in order. @@ -216,24 +216,28 @@ or a rc.d script on SysVinit based systems. ```jsonc { "boot-report": { - // (REQUIRED) MUA for sending mail - /* stdout MUA - * For testing. Print contents to stdout. Doesn't actually send mail - */ + // (REQUIRED) MUA for sending mail + /* stdout MUA + * For testing. Print contents to stdout. Doesn't actually send mail + */ // "mua": "stdout", "mua": "mailx", // mailx command MUA - // (REQUIRED) List of recipients + // (REQUIRED) List of recipients "mail-to": [ "root" ], - // The mail subject (optional) + // The mail subject (optional) "subject": "Custom Boot Report Subject from {hostname}", - /* - * The mail body header(leading yaml comments). Use line break(\n) for - * multi-line header (optional) - */ + /* + * The mail body header(leading yaml comments). Use line break(\n) for + * multi-line header (optional) + */ "header": "Custom header content with {hostname} substitution.", "uptime-since": true, // Include output of `uptime --since` (optional) "uptime": true, // Include output of `uptime -p` (optional) - "bootid": true // Include kernel boot_id (optional) + "bootid": true, // Include kernel boot_id (optional) + // Wait for systemd to finish boot up process (optional) + "boot-wait": "systemd", + // Wait 5 seconds before sending mail + "delay": 5 } } ``` @@ -244,17 +248,17 @@ the `aws` module. ```jsonc { - "modules": [ "aws" ], - "boot-report": { - "mua": "aws-sns", - "mua-param": { - // "profile": "default", - // If the profile does not have the default region. - "region": "us-east-1" - }, - // Target ARNs. Any ARN recognised by the SNS can be used. - "mail-to": [ "arn:aws:sns:us-east-1:NNNNNNNNNNNN:topic-test" ] - } + "modules": [ "aws" ], + "boot-report": { + "mua": "aws-sns", + "mua-param": { + // "profile": "default", + // If the profile does not have the default region. + "region": "us-east-1" + }, + // Target ARNs. Any ARN recognised by the SNS can be used. + "mail-to": [ "arn:aws:sns:us-east-1:NNNNNNNNNNNN:topic-test" ] + } } ``` |