AI Implementation feature(1089): Scheduled Execution with Cron and Retry Handling (#9)
This commit was merged in pull request #9.
This commit is contained in:
@@ -20,4 +20,14 @@ if ! head -n 1 "${CRON_FILE}" | grep -qE '^[A-Z_]+='; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! grep -q '/usr/local/bin/run-bot.sh' "${CRON_FILE}"; then
|
||||
echo "install-cron: ${CRON_FILE} must invoke /usr/local/bin/run-bot.sh" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! grep -qE '/proc/1/fd/1' "${CRON_FILE}"; then
|
||||
echo "install-cron: ${CRON_FILE} must redirect output to /proc/1/fd/1" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "install-cron: ${CRON_FILE} installed (mode 0644)"
|
||||
|
||||
Reference in New Issue
Block a user