Skip to content

Commit

Permalink
Move start daemon var after services have been stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
MorningLightMountain713 committed Jan 9, 2025
1 parent f8b4912 commit ad90ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZelBack/src/services/fluxService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1644,14 +1644,14 @@ async function streamChainPreparation(req, res) {
return;
}

daemonStartRequired = true;
// stop services
if (isArcane) {
await serviceHelper.runCommand('systemctl', { runAsRoot: false, params: ['stop', 'flux-watchdog.service', 'fluxd.service'] });
} else {
await serviceHelper.runCommand('systemctl', { runAsRoot: true, params: ['stop', 'zelcash.service'] });
await serviceHelper.runCommand('pm2', { runAsRoot: false, params: ['stop', 'watchdog'] });
}
daemonStartRequired = true;
const response = messageHelper.createSuccessMessage('Daemon stopped, you can start stream chain functionality');
res.json(response);
} finally {
Expand Down

0 comments on commit ad90ae1

Please sign in to comment.