I can tell you how I've done it when playing with my own dicom
server/rails combo, but Im guessing you may be looking for something
more sofisticated.
Anyway, I've just started the dicom server in its own thread, which
means that the dicom server starts when the rails application starts,
and it also shuts down when the rails application is brought down.
These couple of lines are placed at the end of the config/environment.rb file:
# Start the DICOM Server in a separate thread:
s = DICOM::DServer.new(11112, :ae => "RAILS-DICOM", :file_handler =>
DICOM::RailsFileHandler)
t = Thread.new { s.start_scp("./public/dicom/") }
Regards,
Chris