From f0e3d3ef8f9dad895f7b6bc1768630f0ef17912e Mon Sep 17 00:00:00 2001 From: David Timber Date: Sun, 15 May 2022 21:31:54 +0800 Subject: Add boot-report subcmd ... - Fix palhm-dnssec-check.sh - Make "tasks" config optional so that PALHM can be used only for boot-report --- src/conf/palhm-boot-report.service | 14 ++++++++++++++ src/conf/py-sample/boot-report.jsonc | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 src/conf/palhm-boot-report.service create mode 100644 src/conf/py-sample/boot-report.jsonc (limited to 'src/conf') diff --git a/src/conf/palhm-boot-report.service b/src/conf/palhm-boot-report.service new file mode 100644 index 0000000..288aabd --- /dev/null +++ b/src/conf/palhm-boot-report.service @@ -0,0 +1,14 @@ +[Unit] +Description=PALHM send boot report mail +After=postfix.service sendmail.service exim.service + +[Service] +Type=oneshot +ExecStart=/var/lib/PALHM/src/palhm.py -q boot-report +Nice=10 +ProtectSystem=strict +ReadOnlyPaths=/ +PrivateDevices=true + +[Install] +WantedBy=multi-user.target diff --git a/src/conf/py-sample/boot-report.jsonc b/src/conf/py-sample/boot-report.jsonc new file mode 100644 index 0000000..dd9d606 --- /dev/null +++ b/src/conf/py-sample/boot-report.jsonc @@ -0,0 +1,7 @@ +{ + "boot-report": { + // "mua": "stdout", + "mua": "mailx", + "mail-to": [ "root" ] + } +} -- cgit v1.2.3-70-g09d2