I am currently developing RubyGem that provides an executable. The executable file monitors the status of some log files using the FSSM gem.
This executable should start, do something in the background and stop later.
For instance:
$ my_executable start
# do something different...
$ my_executable stop
First, I would start a new process that makes a file that looks through the material at the beginning of the method. But I do not know how to solve this process to stop it.
What is the best way to ensure this behavior?
Yours faithfully
source
share