I am writing a health check initializer that should kill the Rails process if certain properties fail. What would be the safest way to interrupt the production server startup process this way? I believe the extreme case works exit, but I'm not sure if this is the best approach.
exit
Running it on a unicorn, if that matters.
There are three ways to complete the ruby process:
exit!
Kernel#at_exit
abort
, abort, , . Kernel#at_exit, , , .
, , .
, , "" - , . , , , .:)
Source: https://habr.com/ru/post/1525529/More articles:System.Diagnostics.Debug.WriteLine stepped over - c #Android background music for several activities; How to catch the press of the "Home" button - javaIn Python, what does pydoc do? - pythonComboBox doesn't show any of its lines - haskellОбъявление переменных Java - javaRails: could not find rake-10.1.1 in any of the sources - ruby-on-railsОтказано, чтобы получить небезопасный заголовок "Content-Length" /чтение тегов ID3 из внешних mp3 файлов - javascriptError logging into EF6 migration database (LocalDb) - entity-frameworkConnecting to MySQL MySQL Server on a Crawler - ruby-on-railsVideo from 2 cameras (for Stereo Vision) using OpenCV, but one of them is behind - c ++All Articles