I’ll be wanting to start/stop a background process via RoR’s web
interface (probably by clicking a form button). When activated, this
process will do its stuff perpetually, until deactivated again. Any
ideas how to go about this? cron would probably be involved.
Nagios (a network monitoring app) has a command file that the web
interface writes to. Then another background process periodically reads
that file and executes commands within.
You could do the same using a database as well which would avoid some
Just be sure you sanatize the input. Even better, write a code like
“START_FOO” which when read will run a specific command. That will make
it a lot harder to hijack.