Application Packaging Developer's Guide

Exit Codes for Scripts

Each script must exit with one of the exit codes shown in the following table.

Table 3–2 Installation Script Exit Codes

Code 

Meaning 

Successful completion of script.  

Fatal error. Installation process is terminated at this point.  

2  

Warning or possible error condition. Installation continues. A warning message is displayed at the time of completion.  

3  

The pkgadd command is cleanly halted. Only the checkinstall script returns this code.

10  

System should be rebooted when installation of all selected packages is completed. (This value should be added to one of the single-digit exit codes.)  

20  

System should be rebooted immediately upon completing installation of the current package. (This value should be added to one of the single-digit exit codes.)  

See Chapter 5, Case Studies of Package Creation for examples of exit codes that are returned by installation scripts.


Note –

All installation scripts delivered with your package should have an entry in the prototype file. The file type should be i (for package installation script).