Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UPDATE: The ability to call Proc.new without a block was removed in Ruby 3.0.0 | |
# See https://bugs.ruby-lang.org/issues/10499 for more information. | |
# So you might have heard that this is slow: | |
# | |
# def some_method(&block) | |
# block.call | |
# end | |
# | |
# Compared to: |