[4.0] e0d4d83 some words about exit codes
Lasse Karstensen
lkarsten at varnish-software.com
Mon Sep 22 16:38:24 CEST 2014
commit e0d4d83e1d5c871096b4b42c3ecfc358b74c1a20
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