I implemented "whenever" service in my Rails app to execute an operation periodically. The operation is expected to be executed only while the Rails app is running, and automatically stopped when the app is shutdown.
I succeeded to automatically start the cron service by calling it in a initializer script, but I can't guess how to stop the service execpt call a shell script manually. How can I do that?
I don't care the kind of cron-like service(whenever, clockwork etc).