[Pkg-clamav-devel] Bug#904327: clamav-freshclam: more specific error code to indicate failure

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Sun Nov 1 18:30:06 GMT 2020


On 2018-07-23 13:55:30 [+0300], Martin-Éric Racine wrote:
> I cannot help but notice the content of the e-mail that is sent to the administrator:
> 
> XSubject: [voima] job cron-clamav-freshclam-clamav-0 failed
> ● cron-clamav-freshclam-clamav-0.service - [Cron] "36 */1 * * * clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam --quiet >/dev/null"
>    Loaded: loaded (/etc/cron.d/clamav-freshclam; generated; vendor preset: enabled)
>    Active: failed (Result: exit-code) since Fri 2018-07-20 11:36:01 EEST; 36ms ago
>      Docs: man:systemd-crontab-generator(8)
>   Process: 7928 ExecStart=/bin/sh /run/systemd/generator/cron-clamav-freshclam-clamav-0.sh (code=exited, status=1/FAILURE)
>  Main PID: 7928 (code=exited, status=1/FAILURE)
> heinä 20 11:36:01 voima systemd[1]: Starting [Cron] "36 */1 * * * clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam --quiet >/dev/null"...
> heinä 20 11:36:01 voima systemd[1]: cron-clamav-freshclam-clamav-0.service: Main process exited, code=exited, status=1/FAILURE
> heinä 20 11:36:01 voima systemd[1]: Failed to start [Cron] "36 */1 * * * clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam --quiet >/dev/null".
> heinä 20 11:36:01 voima systemd[1]: cron-clamav-freshclam-clamav-0.service: Unit entered failed state.
> heinä 20 11:36:01 voima systemd[1]: cron-clamav-freshclam-clamav-0.service: Triggering OnFailure= dependencies.
> heinä 20 11:36:01 voima systemd[1]: cron-clamav-freshclam-clamav-0.service: Failed with result 'exit-code'.
> 
> Unless I missed something, this doesn't specify why the script failed. It would be desirable to include the exit code in the e-mail sent to the administrator.

Is this valid or did it got solved in the meantime?

Sebastian



More information about the Pkg-clamav-devel mailing list