@codai/cbd
Version:
Codai Better Database - High-Performance Vector Memory System with HPKV-inspired architecture and MCP server
26 lines ⢠841 B
JavaScript
/**
* CBD Engine Service Startup Script
* Simple startup script for the CBD Engine Service
*/
import { CBDEngineService } from './service.js';
async function startService() {
try {
console.log('š Starting CBD Engine Service...');
const service = new CBDEngineService();
await service.start();
// Setup graceful shutdown
const shutdown = async (signal) => {
console.log(`\nš” Received ${signal}. Shutting down gracefully...`);
process.exit(0);
};
process.on('SIGINT', () => shutdown('SIGINT'));
process.on('SIGTERM', () => shutdown('SIGTERM'));
}
catch (error) {
console.error('ā Failed to start service:', error);
process.exit(1);
}
}
startService();
//# sourceMappingURL=start-service.js.map