Merge exit codes page into syncthing(1)

This commit is contained in:
Stefan Tatschner
2015-05-30 00:30:01 +02:00
parent 428c3638c1
commit debef5cf6e
2 changed files with 20 additions and 23 deletions

View File

@@ -1,23 +0,0 @@
Exit Codes
==========
These are the known exit codes returned by Syncthing:
==== =======
Code Meaning
==== =======
0 Success / Shutdown
1 Error
2 Upgrade not available
3 Restarting
5 Upgrading
==== =======
Some of these exit codes are only returned when running without a
monitor process (with environment variable ``STNORESTART`` set).
Exit codes over 125 are usually returned by the shell/binary
loader/default signal handler.
Exit codes over 128+N on Unix usually represent the signal which caused
the process to exit. For example, ``128 + 9 (SIGKILL) = 137``.

View File

@@ -68,6 +68,26 @@ Options
``-version``
Show version.
Exit Codes
----------
0
Success / Shutdown
1
Error
2
Upgrade not available
3
Restarting
5
Upgrading
Some of these exit codes are only returned when running without a monitor
process (with environment variable ``STNORESTART`` set). Exit codes over 125 are
usually returned by the shell/binary loader/default signal handler. Exit codes
over 128+N on Unix usually represent the signal which caused the process to
exit. For example, ``128 + 9 (SIGKILL) = 137``.
Development Settings
--------------------