Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Clustering > Urgent: Delay the start of a service

Reply
Thread Tools Display Modes

Urgent: Delay the start of a service

 
 
Metallion98
Guest
Posts: n/a

 
      12-16-2008
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
 
Reply With Quote
 
 
 
 
Edwin vMierlo [MVP]
Guest
Posts: n/a

 
      12-17-2008
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" <> wrote in message
news:3693317F-1545-4442-8787-...
> 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



 
Reply With Quote
 
Metallion98
Guest
Posts: n/a

 
      12-17-2008
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:

> 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" <> wrote in message
> news:3693317F-1545-4442-8787-...
> > 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

>
>
>

 
Reply With Quote
 
Edwin vMierlo [MVP]
Guest
Posts: n/a

 
      12-17-2008

"Metallion98" <> wrote in message
news:775F9391-F370-43B1-A632-...
> 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/libr...46(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" <> wrote in message
> > news:3693317F-1545-4442-8787-...
> > > 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

> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent!! 'Server' service fails to start Jagminder Chugh Windows Vista Printing / Faxing / Scanning 0 07-25-2008 06:51 PM
Urgent!! 'Server' service doesnt start Jagminder Chugh Windows Vista Printing / Faxing / Scanning 0 07-25-2008 06:05 PM
Delay a Windows Service to start Joel Windows Server 7 04-08-2008 06:54 PM
Service wont start (very urgent!!!!!!!) Tom B Windows Server 4 04-18-2006 05:59 PM
DHCP service not start - urgent Jaro Windows Server 4 10-13-2005 12:28 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59