Mount USB stick (backup stick)
configure fstab to skip mount errors because if USB stick is not available boot fails or is really slow due to mount timeout (default seemsto be 90 seconds). More info at https://www.blogperle.de/raspberry-pi-emergency-mode-and-root-account-locked-mounting-usb-disk-with-fstab/
Troubleshooting USB stick file system
Daily repair cronjob
Backup runs daily at 18:15 (after daily regular closing of the museum)
Additionally a remote host is copying the backup files by pulling with rsync over SSH.
Cleaning old InfluxDB dumps
Troubleshooting Postfix (Restart Postfix)
Because sometimes mailq is not emptied we are going to force sending out mails every 5 minutes. Sometimes the message "postqueue: warning: Mail system is down -- accessing queue directly" is shown when typing command "mailq".
Send dmesg log by mail
/etc# cat rc.local
Switch off LED stripes and spot from Trikarus
Saves energy and prolongs the life of the LEDs
Switch on LED stripes and spot from Trikarus
This script switches on the LEDs once per hour. It should not autotrigger every minute because the userdefined request to turn them off should be respected too (from bash or from Repetier Server UI)!