Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.clustering
Thread: Urgent: Delay the start of a service

HTVi
TV Discussion Newsgroups

Urgent: Delay the start of a service
Metallion98 12/16/2008 11:06:21 AM
What I want to do is delay one service for about a minute before it autostarts.

Just creating a new dependency service that runs a .bat file with sleep in
it doesn't work. The cluster sees the batch file as started and just starts
the other service while the batch is sleeping.

I think I thought about was to make my service dependent of a dummy service
and not let the cluster autostart the dummy. Then I could run a batch file
that sleeps and afterwards starts the dummy. Then the service I want started
will see that the dummy is up and finally autostart itself, but for this it
must be possible to make a dependency that's not autostarted. Is this
possible?

Thanks
Re: Urgent: Delay the start of a service
"Edwin vMierlo [MVP]" <EdwinvMierlo[ at ]discussions.microsoft.com> 12/17/2008 8:49:19 AM
You can create a generic script in VB-scripting, and program a delay in the
online() entry point, that way the online() is called but will not return
until done.

that should do it

rgds,
Edwin.


"Metallion98" <Metallion98[ at ]discussions.microsoft.com> wrote in message
news:3693317F-1545-4442-8787-96B8ABB2FDC0[ at ]microsoft.com...
[Quoted Text]
> What I want to do is delay one service for about a minute before it
autostarts.
>
> Just creating a new dependency service that runs a .bat file with sleep in
> it doesn't work. The cluster sees the batch file as started and just
starts
> the other service while the batch is sleeping.
>
> I think I thought about was to make my service dependent of a dummy
service
> and not let the cluster autostart the dummy. Then I could run a batch file
> that sleeps and afterwards starts the dummy. Then the service I want
started
> will see that the dummy is up and finally autostart itself, but for this
it
> must be possible to make a dependency that's not autostarted. Is this
> possible?
>
> Thanks


Re: Urgent: Delay the start of a service
Metallion98 12/17/2008 10:51:01 AM
Thank you very much for your suggestion! I am looking into vbscript now.

I have no experience with it yet so any example you could give would be much
appreciated. Like how exactly to program it and where to place the file, how
to hand it to the cluster, etc. Anything is useful. :)

"Edwin vMierlo [MVP]" wrote:

[Quoted Text]
> You can create a generic script in VB-scripting, and program a delay in the
> online() entry point, that way the online() is called but will not return
> until done.
>
> that should do it
>
> rgds,
> Edwin.
>
>
> "Metallion98" <Metallion98[ at ]discussions.microsoft.com> wrote in message
> news:3693317F-1545-4442-8787-96B8ABB2FDC0[ at ]microsoft.com...
> > What I want to do is delay one service for about a minute before it
> autostarts.
> >
> > Just creating a new dependency service that runs a .bat file with sleep in
> > it doesn't work. The cluster sees the batch file as started and just
> starts
> > the other service while the batch is sleeping.
> >
> > I think I thought about was to make my service dependent of a dummy
> service
> > and not let the cluster autostart the dummy. Then I could run a batch file
> > that sleeps and afterwards starts the dummy. Then the service I want
> started
> > will see that the dummy is up and finally autostart itself, but for this
> it
> > must be possible to make a dependency that's not autostarted. Is this
> > possible?
> >
> > Thanks
>
>
>
Re: Urgent: Delay the start of a service
"Edwin vMierlo [MVP]" <EdwinvMierlo[ at ]discussions.microsoft.com> 12/17/2008 11:33:59 AM

"Metallion98" <Metallion98[ at ]discussions.microsoft.com> wrote in message
news:775F9391-F370-43B1-A632-F7F92E553468[ at ]microsoft.com...
[Quoted Text]
> Thank you very much for your suggestion! I am looking into vbscript now.
>
> I have no experience with it yet so any example you could give would be
much
> appreciated. Like how exactly to program it and where to place the file,
how
> to hand it to the cluster, etc. Anything is useful. :)

see: http://msdn.microsoft.com/en-us/library/aa372846(VS.85).aspx

HTH,
Edwin.


>
> "Edwin vMierlo [MVP]" wrote:
>
> > You can create a generic script in VB-scripting, and program a delay in
the
> > online() entry point, that way the online() is called but will not
return
> > until done.
> >
> > that should do it
> >
> > rgds,
> > Edwin.
> >
> >
> > "Metallion98" <Metallion98[ at ]discussions.microsoft.com> wrote in message
> > news:3693317F-1545-4442-8787-96B8ABB2FDC0[ at ]microsoft.com...
> > > What I want to do is delay one service for about a minute before it
> > autostarts.
> > >
> > > Just creating a new dependency service that runs a .bat file with
sleep in
> > > it doesn't work. The cluster sees the batch file as started and just
> > starts
> > > the other service while the batch is sleeping.
> > >
> > > I think I thought about was to make my service dependent of a dummy
> > service
> > > and not let the cluster autostart the dummy. Then I could run a batch
file
> > > that sleeps and afterwards starts the dummy. Then the service I want
> > started
> > > will see that the dummy is up and finally autostart itself, but for
this
> > it
> > > must be possible to make a dependency that's not autostarted. Is this
> > > possible?
> > >
> > > Thanks
> >
> >
> >


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen