[Dev] [Maintenance] Cron <repo at parabola> /usr/bin/cronic bash -c '/home/repo/dbscripts/db-cleanup 2>&1'

Michał Masłowski mtjm at mtjm.eu
Sun May 10 13:26:44 GMT 2015


> Cronic detected failure or error output for the command:
> bash -c /home/repo/dbscripts/db-cleanup 2>&1
>
> RESULT CODE: 1
>
> ERROR OUTPUT:
>
> STANDARD OUTPUT:
[...thousands of lines listing repos and packages to be deleted...]
>
> ==> ERROR: An unknown error has
> occurred. Exiting...

This is why every cronjob should start with "set -ex".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20150510/543a31b9/attachment.sig>


More information about the Dev mailing list