@dench.com/cli 0.3.4 → 0.3.5
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/fs-daemon.ts +21 -35
- package/package.json +1 -1
package/fs-daemon.ts
CHANGED
|
@@ -1451,38 +1451,24 @@ async function runInitialSync(argv: string[]): Promise<void> {
|
|
|
1451
1451
|
);
|
|
1452
1452
|
}
|
|
1453
1453
|
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
//
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
main().catch((error) => {
|
|
1476
|
-
console.error(
|
|
1477
|
-
`[dench-fs-daemon] fatal: ${
|
|
1478
|
-
error instanceof Error ? (error.stack ?? error.message) : String(error)
|
|
1479
|
-
}`,
|
|
1480
|
-
);
|
|
1481
|
-
// Always exit with a non-zero code so the supervisor (in
|
|
1482
|
-
// src/lib/daytona/sandbox-bootstrap.ts) can decide whether to
|
|
1483
|
-
// restart. Previously we parked the process on a noop interval,
|
|
1484
|
-
// which made `pgrep dench-fs-daemon` report "alive" for a daemon
|
|
1485
|
-
// that had silently given up syncing.
|
|
1486
|
-
process.exit(1);
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1454
|
+
// Always run main(). Earlier versions guarded this on an `isDirectEntrypoint`
|
|
1455
|
+
// heuristic (`process.argv[1].endsWith("/fs-daemon")` etc.), but bun's global
|
|
1456
|
+
// install symlinks the launcher as `/root/.bun/bin/dench-fs-daemon` — that
|
|
1457
|
+
// path ends with `-fs-daemon`, not `/fs-daemon`, so the guard returned false
|
|
1458
|
+
// and the script exited 0 silently. Nothing imports this file as a module any
|
|
1459
|
+
// more (the test suite imports `fs-daemon-mount.ts` for the FUSE helpers), so
|
|
1460
|
+
// the guard is unnecessary and matches the unconditional `main()` call in
|
|
1461
|
+
// `cli/dench.ts`.
|
|
1462
|
+
main().catch((error) => {
|
|
1463
|
+
console.error(
|
|
1464
|
+
`[dench-fs-daemon] fatal: ${
|
|
1465
|
+
error instanceof Error ? (error.stack ?? error.message) : String(error)
|
|
1466
|
+
}`,
|
|
1467
|
+
);
|
|
1468
|
+
// Always exit with a non-zero code so the supervisor (in
|
|
1469
|
+
// src/lib/daytona/sandbox-bootstrap.ts) can decide whether to restart.
|
|
1470
|
+
// Previously we parked the process on a noop interval, which made
|
|
1471
|
+
// `pgrep dench-fs-daemon` report "alive" for a daemon that had silently
|
|
1472
|
+
// given up syncing.
|
|
1473
|
+
process.exit(1);
|
|
1474
|
+
});
|