I'm getting dumped out of this loop with ```Error: database is locked``` followed by ```log/job/monitor.1.1: line 118: 0: command not found```.  If the loop is for retrying a locked db, then this will be fixed by the change to ```RUNNING=0``` below.