Skip to content

Commit

Permalink
workbench: fix profile tracer control
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed May 31, 2022
1 parent f7c2fa3 commit 6523fd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion nix/workbench/profiles/tracing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
backends = [
"Stdout MachineFormat"
"EKGBackend"
] ++ (if !profile.node.tracer then [] else
[
"Forwarder"
];
]);
};
"Node.AcceptPolicy" = { severity = "Info"; };
"Node.ChainDB" = { severity = "Info"; };
Expand Down
2 changes: 1 addition & 1 deletion nix/workbench/supervisor-conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let
command = "sh start.sh";
stdout_logfile = "${stateDir}/tracer/stdout";
stderr_logfile = "${stateDir}/tracer/stderr";
autostart = true;
autostart = false;
startretries = 0;
};
}
Expand Down
3 changes: 2 additions & 1 deletion nix/workbench/supervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ EOF
supervisord --config "$dir"/supervisor/supervisord.conf $@

if jqtest ".node.tracer" "$dir"/profile.json
then progress_ne "supervisor" "waiting for $(yellow cardano-tracer) to create socket: "
then supervisorctl start tracer
progress_ne "supervisor" "waiting for $(yellow cardano-tracer) to create socket: "
while test ! -e "$dir"/tracer/tracer.socket; do sleep 1; done
echo $(green ' OK') >&2
fi;;
Expand Down

0 comments on commit 6523fd7

Please sign in to comment.