I had a scheduled cronjob for today which worked perfectly.
And becasue it was a one-off job i changed it’s date to “31 of february” (which is a trick i use on other systems to have a job that never gets run automatically).
But now the cronjob part of the GUI just keeps the spinner visible, non of my cronjobs (only 2 including this one) are visible
I don’t know where/how those jobs are stored (there is nothing special in /etc/crontab
or in the inididual folders i.e. /etc/cron.daily
and so on)
Is there a way i can delete this job?
It somehow breaks the UI (even though while editing it seemed to work fine with no scheduled execution begin visible)
Edit: Apparently the cronjobs are in the file /etc/cron.d/middelwared
, at least the scheduling part. no idea where the commands live
The commands in there just run a cronjob “by id”, i.e. 45 7 31 2 * root PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" midclt call cronjob.run 2 true > /dev/null 2> /dev/null
But editing this file doesn’t change anything
The list can be read by using midctl call cronjob.query
and then an entry can be deleted with midctl call cronjob.delete <id>
(id from query call). This worked