awil95
Dabbler
- Joined
- Apr 23, 2017
- Messages
- 28
I have an off-site TrueNAS Scale box that has a cron task set to run every minute to ensure that it maintains a constant WireGuard connection to my home network. Here is the command that the task runs:
This cron task does a great job of keeping the system's WireGuard connection alive to my host network so that I can perform off-site replication tasks. I have "Hide Standard Output" checked; however, the system still sends out the following notification every time the task runs.
Is this information not considered "Standard Output"? Receiving this email message every minute is very annoying and I currently have the task disabled because of it. Is there any way to make it so that this cron task will stop sending this message? Or have it only send an email when there is an error running the task?
Code:
ping -c1 -W5 10.1.98.1 || ( cp /mnt/Persephone/Local_Users/austin/wg0.conf /etc/wireguard/ ; wg-quick down wg0 ; wg-quick up wg0 )
This cron task does a great job of keeping the system's WireGuard connection alive to my host network so that I can perform off-site replication tasks. I have "Hide Standard Output" checked; however, the system still sends out the following notification every time the task runs.
Code:
PING 10.1.98.1 (10.1.98.1) 56(84) bytes of data. 64 bytes from 10.1.98.1: icmp_seq=1 ttl=64 time=65.0 ms --- 10.1.98.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 64.958/64.958/64.958/0.000 ms
Is this information not considered "Standard Output"? Receiving this email message every minute is very annoying and I currently have the task disabled because of it. Is there any way to make it so that this cron task will stop sending this message? Or have it only send an email when there is an error running the task?