Exit Codes Reference¶
sigc exit codes and their meanings.
Success Codes¶
0 - Success¶
Command completed successfully.
Error Codes¶
1 - General Error¶
Unspecified error.
2 - Parse Error¶
Syntax error in sigc file.
3 - Type Error¶
Type mismatch or shape error.
4 - Data Error¶
Problem loading or processing data.
5 - Runtime Error¶
Error during execution.
6 - Configuration Error¶
Invalid configuration.
7 - Broker Error¶
Problem with broker connection or orders.
8 - Safety Error¶
Safety system triggered.
Daemon Exit Codes¶
10 - Daemon Already Running¶
11 - Daemon Not Running¶
12 - Daemon Failed to Start¶
Signal Codes¶
130 - Interrupted (SIGINT)¶
User pressed Ctrl+C.
137 - Killed (SIGKILL)¶
Process was forcefully killed.
143 - Terminated (SIGTERM)¶
Process received termination signal.
Using Exit Codes¶
In Shell Scripts¶
Bash
#!/bin/bash
sigc run strategy.sig
exit_code=$?
case $exit_code in
0) echo "Success" ;;
2) echo "Parse error - check syntax" ;;
4) echo "Data error - check data files" ;;
7) echo "Broker error - check connection" ;;
*) echo "Error code: $exit_code" ;;
esac
In CI/CD¶
With Monitoring¶
Exit Code Categories¶
| Range | Category |
|---|---|
| 0 | Success |
| 1-9 | General errors |
| 10-19 | Daemon errors |
| 20-29 | Broker errors |
| 30-39 | Safety errors |
| 128+ | Signal-based exits |
Debugging¶
Get detailed error information:
Or check logs: