@Override
public void doStart() throws Exception {
if (lockFile == null) {
File lockFileName = new File(directory, "lock");
lockFile = new LockFile(lockFileName, true);
if (failIfLocked) {
lockFile.lock();
} else {
boolean locked = false;
while ((!isStopped()) && (!isStopping())) {