Scheduled Jobs not executing.
-
- OMV 3.x
- tinh_x7
-
-
Post the script here
-
Bash
Alles anzeigen#!/bin/bash # update Netdata script cd "/opt/netdata" echo "killing existing processes..." killall netdata echo "Updating git repo..." git pull echo "Starting netdata installer..." yes | /opt/netdata/netdata-installer.sh if [ $? -eq 0 ] then echo "Successfully updated Netdata." exit 0 else echo "Could not update Netdata!" exit 1 fi
-
-
Is the cron job appearing at the syslog every hour ?
Check that before..if is ok then change the echo for a logging function that pipes to syslog so you can see aprox where it stops. You can find an example in the transmission guide.
-
Not sure.
What if it doesn't appear in the syslog? -
If it doesn't appear in syslog then is cron is not calling it.
-
-
The cron is not calling this script.
-
The cron is not calling this script.
Scheduled jobs is cron.
-
How do I fix this?
-
-
One second after the exact hour you should see a log entry prefixed with CRON followed by the command that Omv generates pointing to /var/lib/openmediavault/cron.d/userdefined-uuid bla bla dev/null
Please check again.
Also check the cron daemon is up and running.
-
I saw a few cron jobs ran, but not this particular one.
-
Is that the only hourly one?
Paste here
cat /var/lib/openmediavault/cron.d/userdefined-ecc2ac42-099b-40af-845a-f0da54921181
I believe that's the one hourly
-
-
It's the only hourly one.
I have to check it tonight.Assume this /var/lib/openmediavault/cron.d/userdefined-ecc2ac42-099b-40af-845a-f0da54921181 is my target script executed, then why it wouldn't update automatically?
Thanks.
-
is my target script executed, then why it wouldn't update automatically?
I've already told you too add some logging to the script in case it failing at some line and actually know what's going on. Maybe add set -x to the script at the beginning after the shebang -
-
-
yes, also mark to send the output via mail so you can see what happened or add a syslog logger in every echo
-
how do I send the output via email?
-
configure the notifications in omv
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!