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)
# 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: |
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)