[email protected] wrote:
> On Oct 13, 11:56�am, Damjan Rems <[email protected]>
> wrote:
>>
>>
>> --
>> Posted viahttp://www.ruby-forum.com/.
> 
> If you are running inside mongrels with monit I am sure you could
> really do this quite easily...
> 
> controller:
> def restart
>   `sudo monit restart -g mongrel all << server_sudo_password`
> end
> 
> view:
> <% link_to "Restart", :action => :restart %>
> 
> Of course because you CAN do something does not mean you SHOULD...
> requires you put the sudo password in the code BAD BAD...
> 
> I have not tested it, because my dev system is not setup this way.
> but looks like it would work.

Sadly my server is Windows. I am working on an application for internal 
users which runs Word and Excel with ole automation a lot to provide 
output documents in pdf.

I haven't yet had production loads but a lot of things can go wrong when 
running ole automation. So I thought If I could close session and 
restart it on demand .... ( You can always repair windows by restarting 
it ;-)

I thought that Mongrel or Webrick have some interface to end itself.

Thank you
TheR

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to