Consolidate MangaCircus app, scraper, and Compose baseline
This commit is contained in:
1 parent
cfb2d79103
commit
eef4ffa07c
103 files changed
+9316
-172
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
const { Supervisor } = require('./supervisor');
|
||||
const supervisor = new Supervisor(process.argv[2] || 'reader');
|
||||
supervisor.start();
|
||||
const keepalive = setInterval(() => {}, 60000);
|
||||
let closing = false;
|
||||
for (const signal of ['SIGINT', 'SIGTERM']) process.on(signal, async () => {
|
||||
if (closing) return; closing = true; clearInterval(keepalive); await supervisor.close(); process.exit(0);
|
||||
});
|
||||
Reference in new issue
Block a user