homeserver/roles/mgrote.ecc-rasdaemon/templates/rasdaemon-cron.sh
mg e4e84d2218 templates: Header-Var eingefügt (#22)
python zu 3

rest

zfs

Postfix

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#22
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-03-07 19:40:32 +01:00

14 lines
390 B
Bash

#!/bin/bash
{{ file_header | default () }}
#####################
## https://www.tothenew.com/blog/foolproof-your-bash-script-some-best-practices/
set -o nounset
set -o errexit
# trap ctrl-c and call ctrl_c()
trap ctrl_c INT
(
echo "--------------------------------------------------"
echo $(date)
/usr/sbin/ras-mc-ctl --status
/usr/sbin/ras-mc-ctl --errors
) >> /var/log/rasdaemon.log 2>&1