diff --git a/users/exit-codes.rst b/users/exit-codes.rst deleted file mode 100644 index a021f9b03..000000000 --- a/users/exit-codes.rst +++ /dev/null @@ -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``. diff --git a/users/syncthing.rst b/users/syncthing.rst index 36d8d2c20..3732e503d 100644 --- a/users/syncthing.rst +++ b/users/syncthing.rst @@ -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 --------------------