[master] ed16ec8 some words about exit codes

Nils Goroll nils.goroll at uplex.de
Tue Aug 26 16:47:59 CEST 2014


commit ed16ec8acbb74f0be230fcc73832dc47f4828076
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Aug 26 16:47:07 2014 +0200

    some words about exit codes

diff --git a/doc/sphinx/reference/varnishd.rst b/doc/sphinx/reference/varnishd.rst
index dbe5db8..75b50ac 100644
--- a/doc/sphinx/reference/varnishd.rst
+++ b/doc/sphinx/reference/varnishd.rst
@@ -249,6 +249,23 @@ here, in order to conserve VM space.
 
 .. include:: ../include/params.rst
 
+EXIT CODES
+==========
+
+Varnish and bundled tools will, in most cases, exit with one of the
+following codes
+
+* `0` OK
+* `1` Configuration / parameter error
+* `2` Some other error which could be system-dependend and/or transient
+
+In addition to these, when coredumps are disabled, `varnishd` will
+exit with status code `4` in a panic situation.
+
+The `varnishd` master process may also OR its exit code with `0x40`
+when the `varnishd` child process was terminated by a signal and with
+`0x80` when a core was dumped.
+
 SEE ALSO
 ========
 



More information about the varnish-commit mailing list