aboutsummaryrefslogtreecommitdiff
path: root/src/conf
diff options
context:
space:
mode:
authorDavid Timber <dxdt@dev.snart.me>2022-05-15 21:31:54 +0800
committerDavid Timber <dxdt@dev.snart.me>2022-05-15 21:31:54 +0800
commitf0e3d3ef8f9dad895f7b6bc1768630f0ef17912e (patch)
tree8fed439b2aab75f091c41e5778cbc72ac2c1f20a /src/conf
parent7d2345ecae07e4b792c60f7d36fa78bb2dc69706 (diff)
Add boot-report subcmd ...
- Fix palhm-dnssec-check.sh - Make "tasks" config optional so that PALHM can be used only for boot-report
Diffstat (limited to 'src/conf')
-rw-r--r--src/conf/palhm-boot-report.service14
-rw-r--r--src/conf/py-sample/boot-report.jsonc7
2 files changed, 21 insertions, 0 deletions
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" ]
+ }
+}