-
How to schedule to stop and start Web Application
Hello, everybody. I would like to know how to schedule a Web application
to stop at certain time and then to restart it 30 minutes later. Is there
a way to do this from Internet Service Manager or thru ASP. Thanks in advance
for any help with this matter.
Michael.
-
Re: How to schedule to stop and start Web Application
"Michael Z." <yz64@aol.com> wrote in message
news:3a7b35ce$1@news.devx.com...
>
> Hello, everybody. I would like to know how to schedule a Web application
> to stop at certain time and then to restart it 30 minutes later. Is there
> a way to do this from Internet Service Manager or thru ASP. Thanks in
advance
> for any help with this matter.
>
Michael - wouldn't you be better off writing a small NT Service to do this?
-
Re: How to schedule to stop and start Web Application
If you disable the application completely, a request for an application page
would return an error to the user. Just a suggestion: it might be better if
you could return an out-of-service message and tell the users when the
application will restart.
To do that, simply check the time at the start of each page. For example,
suppose you wanted to disable the app between 1:00 and 1:30 PM. If the
current time is between those start and end times, write a message to the
user that the application is disabled, will start again in X minutes, and
issue a Session.Abandon. You can do this easily by putting the code in an
INCLUDE file that you include with each page.
It would be highly irritating to people who might be using the application
if you simply disable it without warning. Therefore, you could add code to
begin warning users some time before you actually disable the application,
e.g. "This application will be out of service in 15 minutes. Please save
your work and log off" or something to that effect.
Russell Jones
Sr. Web Development Editor
DevX.com
"Jon Ogden" <jon@ogdenco.net> wrote in message
news:3a7cdf6d$1@news.devx.com...
>
> "Michael Z." <yz64@aol.com> wrote in message
> news:3a7b35ce$1@news.devx.com...
> >
> > Hello, everybody. I would like to know how to schedule a Web
application
> > to stop at certain time and then to restart it 30 minutes later. Is
there
> > a way to do this from Internet Service Manager or thru ASP. Thanks in
> advance
> > for any help with this matter.
> >
>
> Michael - wouldn't you be better off writing a small NT Service to do
this?
>
>
-
Re: How to schedule to stop and start Web Application
I have to write a NT Service?
How i can do this? I f i have win 2000 Advenced server
Thanks
CArlos
"Russell Jones" <arj1@northstate.net> wrote in message
news:3a7cf052$1@news.devx.com...
> If you disable the application completely, a request for an application
page
> would return an error to the user. Just a suggestion: it might be better
if
> you could return an out-of-service message and tell the users when the
> application will restart.
>
> To do that, simply check the time at the start of each page. For example,
> suppose you wanted to disable the app between 1:00 and 1:30 PM. If the
> current time is between those start and end times, write a message to the
> user that the application is disabled, will start again in X minutes, and
> issue a Session.Abandon. You can do this easily by putting the code in an
> INCLUDE file that you include with each page.
>
> It would be highly irritating to people who might be using the application
> if you simply disable it without warning. Therefore, you could add code to
> begin warning users some time before you actually disable the application,
> e.g. "This application will be out of service in 15 minutes. Please save
> your work and log off" or something to that effect.
>
> Russell Jones
> Sr. Web Development Editor
> DevX.com
>
> "Jon Ogden" <jon@ogdenco.net> wrote in message
> news:3a7cdf6d$1@news.devx.com...
> >
> > "Michael Z." <yz64@aol.com> wrote in message
> > news:3a7b35ce$1@news.devx.com...
> > >
> > > Hello, everybody. I would like to know how to schedule a Web
> application
> > > to stop at certain time and then to restart it 30 minutes later. Is
> there
> > > a way to do this from Internet Service Manager or thru ASP. Thanks in
> > advance
> > > for any help with this matter.
> > >
> >
> > Michael - wouldn't you be better off writing a small NT Service to do
> this?
> >
> >
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|