From 177cc5bd7fb6a5d3e6ae8be415635d0732a28222 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 11 Jul 2026 06:07:41 +0200 Subject: Systemd notify hooks, move nixos integration tests to a systemd service --- src/api/Server.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/api/Server.ts') diff --git a/src/api/Server.ts b/src/api/Server.ts index 83f73367..84503d6e 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -35,7 +35,7 @@ import { pendingPolls, JwtKeypairManager, } from "@spacebar/util"; -import { ProcessLifecycle } from "../util/util/ProcessLifecycle"; +import { ProcessLifecycle, SystemdLifecycle } from "../util/util/ProcessLifecycle"; import { Monitoring } from "../util/monitoring/Monitoring"; import { BcryptWorkerPool } from "../util/util/workers/bcrypt/BcryptWorkerPool"; import { Authentication, CORS, ImageProxy, BodyParser, ErrorHandler, initRateLimits, initTranslation } from "./middlewares"; @@ -238,7 +238,8 @@ export class SpacebarServer extends Server { if (logRequests) console.log(red(`Warning: Request logging is enabled! This will spam your console!\nTo disable this, unset the 'LOG_REQUESTS' environment variable!`)); + await super.start(); + await SystemdLifecycle.setStatus(`Listening on ${this.options.host}:${this.options.port}...`); await ProcessLifecycle.Ready(); - return super.start(); } } -- cgit 1.5.1