|
|
IIS Stop and Start Application Pool
Hi, I'm not expert in Ruby....In my company we use a Ruby script to
deploy some services. No we need to implement the script stopping the
IIS application pool during deployment and then restart it....
Is there any way to do that in Ruby??? Someone here tells me that ruby
prepares coffe and cappuccino too....but...for IIS...I don't know how
to do it....
Any help will be very appreciated.
Thanks in advance
Giacomo
|
|
0
|
|
|
|
Reply
|
IAK
|
11/22/2010 10:50:46 AM |
|
[Note: parts of this message were removed to make it a legal post.]
On Mon, Nov 22, 2010 at 4:55 AM, IAK <giviglie@gmail.com> wrote:
> Hi, I'm not expert in Ruby....In my company we use a Ruby script to
> deploy some services. No we need to implement the script stopping the
> IIS application pool during deployment and then restart it....
> Is there any way to do that in Ruby??? Someone here tells me that ruby
> prepares coffe and cappuccino too....but...for IIS...I don't know how
> to do it....
> Any help will be very appreciated.
> Thanks in advance
>
> Giacomo
>
>
Google led me to this page:
http://learn.iis.net/page.aspx/163/managing-applications-and-application-pools-on-iis-70-with-wmi/
.
I modified the code snippets to ruby.
# === Stopping an Application Pool ===
require 'win32ole'
# Connect to the WMI WebAdministration namespace.
web_admin = WIN32OLE.connect("winmgmts:root\\WebAdministration")
# Specify the application pool.
app_pool = web_admin.get("ApplicationPool.Name='DefaultAppPool'")
# Stop the application pool.
app_pool.stop
# === Starting an Application Pool ===
require 'win32ole'
# Connect to the WMI WebAdministration namespace.
web_admin = WIN32OLE.connect("winmgmts:root\\WebAdministration")
# Specify the application pool.
app_pool = web_admin.get("ApplicationPool.Name='DefaultAppPool'")
# Start the application pool.
app_pool.start
# === Recycling an Application Pool ===
require 'win32ole'
web_admin = WIN32OLE.connect("winmgmts:root\\WebAdministration")
app_pool = web_admin.get("ApplicationPool.Name='DefaultAppPool'")
# Recycle the application pool.
app_pool.recycle
|
|
0
|
|
|
|
Reply
|
Gordon
|
11/22/2010 4:23:23 PM
|
|
|
1 Replies
724 Views
(page loaded in 0.036 seconds)
Similiar Articles: IIS Stop and Start Application Pool - comp.lang.rubyHi, I'm not expert in Ruby....In my company we use a Ruby script to deploy some services. No we need to implement the script stopping the IIS application pool during ... Start and Stopping the JVM - comp.lang.java.programmerIIS Stop and Start Application Pool - comp.lang.ruby Start and Stopping the JVM - comp.lang.java.programmer IIS Stop and Start Application Pool - comp.lang.ruby Start and ... some GPIB-tcl questions - comp.lang.tclIIS Stop and Start Application Pool - comp.lang.ruby some GPIB-tcl questions - comp.lang.tcl Or there's thread pools on ibwait().. not sure ... i need help fixing a "cannot bind to address" error - comp ...If it's Windows IIS, disable it before you run Apache. ... I had to stop PWS first. but know i have another ... Open the command window and start Apache from the ... Meinberg NTP Software--Time Accuracy - comp.protocols.time.ntp ...... includes configuration by default, using some pool ... Why aren't Stop and Start sufficient? > > Restart (in the ... adequate messages are written to the Windows application ... w32tm DC error - comp.protocols.time.ntpThen stop and restart the Windows Time Service. Look ... Have you tried using us.pool.ntp.org instead of time ... that try to "tunnel out" using standard application ports. ntpd, boot time, and hot plugging - comp.protocols.time.ntp ...A client using the pool servers scheme really needs ... The bigger the application, the more > you have to lose ... > Would one need to script a complete > stop/start of ntpd ... MERGE statement consuming all available CPU - comp.databases.ibm ...We our application executes it, our CPUs easily goes to 100%. ... Speed: 2.401083e-07 Comm Speed: 0 Buffer Pool ... 4) Stop Key Predicate Comparison Operator: Equal ... Need *very* small NTP-Server for Linux - comp.protocols.time.ntp ...This application should not It sound as though what you ... -- Brad Knowles, <brad@stop.mail-abuse.org> "Those who ... two ways: 1) Sync both to the ntp pool - not very ... Examples of C++ in Safety Critical Systems - comp.lang.c++ ...... opposite direction and by showing signals the stop ... Some companies are listed at Bjarne Stroustrup's "Application ... allows the programmer to define custom storage pools ... Start or Stop an Application Pool (IIS 7)Explains how to stop an application pool from receiving requests and how to start an application pool that will receive requests in IIS 7.0. How to: Stop and Start Services, Application Pools, and Web SitesFor a service, click Services, right-click the service, and then click Stop or Start. For an application pool, click Internet Information Services (IIS) Manager, expand ... 7/23/2012 9:40:08 AM
|
|
|
|
|
|
|
|
|