Daemons ... this should be simple

My first impression is that you should be using the full path to the myserver.rb file … if myserver.rb is in lib/tasks, then you should run ruby script/runner lib/tasks/myserver.rb. -J.