Hi, the precursor TLDR request of the long winded explanation below is: how to stop a specific cron job that runs every. single. minute. from being logged at all.
Sending it to &> /dev/null or >/dev/null 2>&1 obviously didn't work since it still reports:
I just want this cron job not to be logged at all. (and yes, it appears in
---------------------------------------------------------
Why such a job that runs every minute?
What issue could have been the root cause? My NAS's motherboard died. It was also the target for all my VM/Container backups for my proxmox cluster... AND where I store isos and templates.
I transplanted my NAS into a VM in the one proxmox node that could receive its storage.
Issue solved? Nope.
Since that server became a VM, I tried SMB share, I tried NFS... and said share/networkdrive keeps randomely disconnecting from proxmox (still pings just fine, and accessible from everywhere else tho, just not proxmox), or sometimes outright refusing to be created (even after removing the remnants in /mnt/pve/ on all the nodes..);
And only way to fix the thing is to reboot every nodes.... tedious, unpractical, no way I'm going to spend my days rebooting something meant to run 24/7.
SO I made a script, and a cron job, that umounts any stale thingy in /mnt/pve/ ... and within 10 seconds, pvestatd gets remounted! Great!
Issue solved? No.
Now I have a cron job running every single minute on every node, and creating 3 lines of logs each effing time. Please save me from this nightmare.
Sending it to &> /dev/null or >/dev/null 2>&1 obviously didn't work since it still reports:
Code:
Oct 30 16:41:01 Nodename CRON[137392]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Oct 30 16:41:01 Nodename CRON[137393]: (root) CMD (/root/stalenuke.sh >/dev/null 2>&1)
Oct 30 16:41:01 Nodename CRON[137392]: pam_unix(cron:session): session closed for user root
I just want this cron job not to be logged at all. (and yes, it appears in
journalctl -u cron
... along with freshly uncovered 3 years of cron job logs. )---------------------------------------------------------
Why such a job that runs every minute?
What issue could have been the root cause? My NAS's motherboard died. It was also the target for all my VM/Container backups for my proxmox cluster... AND where I store isos and templates.
I transplanted my NAS into a VM in the one proxmox node that could receive its storage.
Issue solved? Nope.
Since that server became a VM, I tried SMB share, I tried NFS... and said share/networkdrive keeps randomely disconnecting from proxmox (still pings just fine, and accessible from everywhere else tho, just not proxmox), or sometimes outright refusing to be created (even after removing the remnants in /mnt/pve/ on all the nodes..);
And only way to fix the thing is to reboot every nodes.... tedious, unpractical, no way I'm going to spend my days rebooting something meant to run 24/7.
SO I made a script, and a cron job, that umounts any stale thingy in /mnt/pve/ ... and within 10 seconds, pvestatd gets remounted! Great!
Issue solved? No.
Now I have a cron job running every single minute on every node, and creating 3 lines of logs each effing time. Please save me from this nightmare.
Last edited: