diff options
Diffstat (limited to 'src/conf')
-rw-r--r-- | src/conf/palhm-boot-report.service | 14 | ||||
-rw-r--r-- | src/conf/py-sample/boot-report.jsonc | 7 |
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" ] + } +} |