Run Ruby / EventMachine script as a system service

I wrote a simple UDP server in Ruby using EventMachine. I would like it to always work on my Linux box. Is it possible to track the proposals for its completion as a system service or in any other form, launched at startup, running on the go?

+3
source share
4 answers
+2
source

Cron [@restart] [1]. , .

[1]: https://help.ubuntu.com/community/CronHowto#Advanced Crontab

0

. Ruby Process.daemon: http://www.ruby-doc.org/core-2.1.0/Process.html#method-c-daemon

Process.daemon EM.run, .

0

Source: https://habr.com/ru/post/1781941/


All Articles