Hi,
I am currently developing a RubyGem that provides an executable. The executable keeps track of the state of some log files using the FSSM gem.
This executable should get started, do something in background, and get stopped later on.
For example:
$ my_executable start
# do something different...
$ my_executable stop
I would first start a new process, that does the file watching stuff, inside the start method. But I don't know how to address this process for stopping it.
What's the best way to provide such a behavior?
Regards