repowise 0.1.47 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/repowise.js +7 -5
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -2589,11 +2589,13 @@ async function handleCatchUp(offlineState, pollClient, repoIds, state, repoLocal
|
|
|
2589
2589
|
notifyBackOnline(updateCount);
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
async function startListener() {
|
|
2592
|
+
async function startListener(options) {
|
|
2593
2593
|
running = true;
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2594
|
+
if (!options?.skipPidCheck) {
|
|
2595
|
+
const alreadyRunning = await handleStalePid();
|
|
2596
|
+
if (alreadyRunning)
|
|
2597
|
+
return;
|
|
2598
|
+
}
|
|
2597
2599
|
await writePidFile();
|
|
2598
2600
|
const config2 = await getListenerConfig();
|
|
2599
2601
|
if (config2.repos.length === 0) {
|
|
@@ -3026,7 +3028,7 @@ program.command("config").description("Manage configuration").action(async () =>
|
|
|
3026
3028
|
});
|
|
3027
3029
|
if (process.argv[2] === "__listener") {
|
|
3028
3030
|
Promise.resolve().then(() => (init_main(), main_exports)).then(
|
|
3029
|
-
({ startListener: startListener2 }) => startListener2().catch((err) => {
|
|
3031
|
+
({ startListener: startListener2 }) => startListener2({ skipPidCheck: true }).catch((err) => {
|
|
3030
3032
|
console.error("Listener fatal error:", err);
|
|
3031
3033
|
process.exitCode = 1;
|
|
3032
3034
|
})
|