4 if [[ ! -e /dev
/shm
/iank-status
]]; then
7 eval $
(< /dev
/shm
/iank-status
)
10 for d
in /var
/local
/cron-errors
/home
/iank
/cron-errors
/sysd-mail-once-state
; do
15 if (( ${#dirs[@]} >= 1 )); then
16 out
=$
(find ${dirs[@]} -type f
)
19 echo HOSTNAME
: $HOSTNAME
22 if [[ $HOSTNAME != "$MAIL_HOST" ]]; then
25 for h
in {li
,bk
,je
}.b8.nz
; do
26 out
=$
(ssh $h find /m
/md
/bounces
/new
/var
/local
/cron-errors
/home
/iank
/cron-errors
/sysd-mail-once-state
-type f
)
33 # for .prom.$PID files, they will naturally exist when
34 # scripts like system-status get killed on reboot.
35 # Just clean them up here.
36 find /var
/lib
/prometheus
/node-exporter
-name '*[0-9]' -type f
-mtime 9 -delete