taskd.pl: do not abandon unloadable clones
commitab3016d71d03ccf380369084469d034d964ab664
authorKyle J. McKay <mackyle@gmail.com>
Sun, 30 Oct 2016 12:31:56 +0000 (30 05:31 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 30 Oct 2016 12:31:56 +0000 (30 05:31 -0700)
treee103735a090244e3664b280741221c64bea49b56
parent3a08d80d2917c605339ff5611b8535449f1e4a21
taskd.pl: do not abandon unloadable clones

If a clone failes to start because the project cannot be loaded,
check to see if it really does exist and has been marked for cloning.

If it has, then helpfully touch .clone_failed so that it's possible
to attempt to restart the clone later.

This shouldn't normally be necessary, but if something on the system
goes temporarily wonky that causes the project load to fail the clone
would otherwise be left hanging -- marked for cloning, but not actually
cloning and not restartable because it's not yet failed.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
taskd/taskd.pl