-1

What is the best way to do a ruby process as a background system daemon in Debian?

These daemons are telecom billing process read from many database sources, which write one at a time and to a log file.

sawa
  • 165,429
  • 45
  • 277
  • 381
Javier Valencia
  • 697
  • 7
  • 24
  • Welcome to Stack Overflow. You're asking for opinions, which are off-topic, in a very broad question. What have you tried? If you haven't tried, where have you searched and why didn't those help answer your problem? As is you show no effort, which is essential. Please read "[ask]" including the links at the bottom of the page. – the Tin Man Feb 07 '16 at 18:14
  • I'm trying to learn best way and the best practices to do a background daemon from the ruby point of view. – Javier Valencia Feb 07 '16 at 18:18
  • Hey, @TinMan, stop being a bully. Again, this isn't that bad of a question. You people need to seek other hobbies. I get it, you have 90,000 reputation points, you can downvote every question made on stackoverflow today. Fact is, you're discouraging new members from joining the community. – boulder_ruby Feb 08 '16 at 02:03

1 Answers1

0

The simplest way is to do:

Process.daemon(true, true)
sawa
  • 165,429
  • 45
  • 277
  • 381