sourceballs.service systemd unit should check if repos are locked
when the database is locked, sourceballs can't run and fails.
Sep 05 04:37:06 gemini.archlinux.org systemd[1]: Starting Sourceballs...
Sep 05 04:37:08 gemini.archlinux.org sourceballs[920185]: ==> ERROR: Repo [community] (x86_64) is already locked by repo-{add,remove} process 920080
Sep 05 04:37:09 gemini.archlinux.org sourceballs[920185]: ==> Removing left over lock from sourceballs
Sep 05 04:37:08 gemini.archlinux.org systemd[1]: sourceballs.service: Main process exited, code=exited, status=1/FAILURE
Sep 05 04:37:08 gemini.archlinux.org systemd[1]: sourceballs.service: Failed with result 'exit-code'.
Sep 05 04:37:08 gemini.archlinux.org systemd[1]: Failed to start Sourceballs.
systemd has ConditionPathExistsGlob
in the [Unit]
section which can be used to postpone the service from starting until the the lock file is gone.
Edited by Jelle van der Waa