Skip to content
davewongillies edited this page Dec 15, 2011 · 1 revision

Shepherd Component Exit Codes

A guide for devs

The following is a list of recommended exit codes for grabbers. The only compulsory part (at the moment) is that components exit with 0 to signal success: if they do, Shepherd will parse their output; if they don't, Shepherd will ignore their output and flag the component as having failed.

All other codes are optional, but it might be useful if components use a common system.

Exit Code Meaning
0 Success
Non-zero Failure
10 No network
11-19 Other network-related failure
20 Unable to parse anything from data source
21-29 Other parsing-related failure
30 Component requires configuration
31 Component requires re-configuration
32-39 Other failure requiring user intervention