mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 14:45:46 +00:00
fix(gateway): keep watch restarts in-process
This commit is contained in:
@@ -44,6 +44,9 @@ export async function runWatchMain(params = {}) {
|
||||
const watchSession = `${deps.now()}-${deps.process.pid}`;
|
||||
childEnv.OPENCLAW_WATCH_MODE = "1";
|
||||
childEnv.OPENCLAW_WATCH_SESSION = watchSession;
|
||||
// The watcher owns process restarts; keep SIGUSR1/config reloads in-process
|
||||
// so inherited launchd/systemd markers do not make the child exit and stall.
|
||||
childEnv.OPENCLAW_NO_RESPAWN = "1";
|
||||
if (deps.args.length > 0) {
|
||||
childEnv.OPENCLAW_WATCH_COMMAND = deps.args.join(" ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user