Skip to content

Commit 801e0ec

Browse files
committed
Science Commit 5.
1 parent 62b3bab commit 801e0ec

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

modules/gray.a85/source/Gray85PortRegistryServer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,12 @@ static class CremeUnlock
368368

369369
boolean isExpired() { return LocalDateTime.now().isAfter(unlockedAt.plusHours(hours)); }
370370
}
371+
372+
/** Standalone entry point — allows start-backend.sh to launch directly. */
373+
public static void main(String[] args) throws InterruptedException
374+
{
375+
Gray85PortRegistryServer server = new Gray85PortRegistryServer();
376+
server.start();
377+
server.join();
378+
}
371379
}

modules/gray/source/GrayPortRegistryServer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,12 @@ LocalDateTime expiresAt()
302302
};
303303
}
304304
}
305+
306+
/** Standalone entry point — allows start-backend.sh to launch directly. */
307+
public static void main(String[] args) throws InterruptedException
308+
{
309+
GrayPortRegistryServer server = new GrayPortRegistryServer();
310+
server.start();
311+
server.join();
312+
}
305313
}

0 commit comments

Comments
 (0)