fix: wire stack restart to TypeScript entrypoint
This commit is contained in:
@@ -13,6 +13,7 @@ const STEPS: Record<
|
||||
runners: () => import('./runners.js'),
|
||||
groups: () => import('./groups.js'),
|
||||
register: () => import('./register.js'),
|
||||
'restart-stack': () => import('./restart-stack.js'),
|
||||
service: () => import('./service.js'),
|
||||
verify: () => import('./verify.js'),
|
||||
};
|
||||
|
||||
@@ -214,7 +214,7 @@ describe('service definitions', () => {
|
||||
expect(unit).toContain('Description=EJClaw Stack Restart Orchestrator');
|
||||
expect(unit).toContain('Type=oneshot');
|
||||
expect(unit).toContain(
|
||||
'ExecStart=/bin/bash /srv/ejclaw/scripts/restart-ejclaw-stack.sh --direct',
|
||||
'ExecStart=/usr/bin/bun /srv/ejclaw/setup/restart-stack.ts --direct',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -386,7 +386,7 @@ After=network.target
|
||||
Type=oneshot
|
||||
WorkingDirectory=${projectRoot}
|
||||
${envLines.join('\n')}
|
||||
ExecStart=/bin/bash ${projectRoot}/scripts/restart-ejclaw-stack.sh --direct
|
||||
ExecStart=${nodePath} ${projectRoot}/setup/restart-stack.ts --direct
|
||||
`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user