mirror of
https://github.com/syncthing/syncthing.git
synced 2026-04-08 16:38:03 -04:00
Merge exit codes page into syncthing(1)
This commit is contained in:
@@ -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``.
|
||||
@@ -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
|
||||
--------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user