Jump to content

Logo

* * * * * 1 votes

Solved : Automatic startup $U when server starts on Windows


10 replies to this topic

#1 zurel

    Newbie

  • Members
  • 5 posts

Posted 11 November 2008 - 10:20 AM

Hello, I am wondering who has experience with ensuring that $U is started when our server gets restarted.

Last week we had to restart due to MS patch on the server and everything (services) started nicely but not $U.

I prefer not to create my own batch file but I want to call the uxstartup.bat as supplied by Orsyp. I am using windows server 2003 and all i know is how to add this to the startup of a certain user that logs in - which ofcourse is not the way to go.

Any help would be much appreciated. there must be people out there who have wanted to do the same - and have accomplished this already.

Thanks
Michiel

#2 kenny

    Hero Member

  • Root Admin
  • PipPipPipPip
  • 270 posts
  • Gender:Male
  • Location:Europe

Posted 12 November 2008 - 12:30 PM

Hello Michiel,

$U services have to start in the right order so it is not possible to declare all of them with automatic start-up and relax... but ... there is a solution using 2 Windows utilities (INSTSRV.EXE and SRVANY.EXE) :)

I've used it on Windows server 2000 (W2K), I guess it should also work for 2003 (W2K3).

You can find these 2 utilities in the NT Resource kit or you can also download them:

W2K: http://www.inscripta.net/ressources/articl...tion/srvany.zip

XP / W2K3: http://www.microsoft.com/downloads/details...ng=en 

After donwloading them, you need to install them, and use them for the automatic startup of $U

0- First backup the Windows Registry (Using the Registry Editor incorrectly can cause serious problems that may require to reinstall your operating system. We cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk).

1- On W2K, copy INSTSRV.EXE and SRVANY.EXE in a folder (C:\reskit for example)
On XP/W2K3, use the setup wizard (By default the 2 files are installed in C:\Program Files\Windows Resource Kits\Tools) and copy INSTSRV.EXE and SRVANY.EXE in a folder (C:\reskit for example) avoiding spaces in the names of the folder


2- Open a command window (cmd.exe), type the command (adapt it to the path you've chosen):

C:reskit\INSTSRV.EXE univ_startup_ C:reskit\SRVANY.EXE_

This creates the service in the Services manager and the registry keys to setup what program to run.

3- Open regedit.exe (Start | run | regedit.exe) and navigate to the registry key :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\univ_startup

Then click Add Key and name it "Parameters"

And click Add Value (will be string type) and type this information:

Value Name: Application

Data Type : REG_SZ

The value of the key is to be the string : C:\ZURELC\mgr\uxstartup.bat (adapt it to your company name and actual path)

Then close Regedit

WARNING: Make sure you backuped the registry first!


The service univ_startup should be created with an automatic start-up pointing to uxstartup.bat.


To test the result, shutdown the Company if started, just start the univ_startup service from the Services window, and check the status of the Company (servers and engines, IT operations running).

Hope this is helpful,

Kenny

Edited by men, 08 January 2009 - 04:58 PM.


#3 zurel

    Newbie

  • Members
  • 5 posts

Posted 12 November 2008 - 12:34 PM

Thanks Kenny,
Sounds like an doable and good approach
Thanks for the effort so far
We'll go give it a try

#4 zurel

    Newbie

  • Members
  • 5 posts

Posted 07 January 2009 - 12:17 PM

Dear Kenny,
we finally got around to trying your solution. It all works fine until I try to start the service.
it says: Error 1053: The service did not respond to the start or control request in a timely fashion.
Please see the attached print screen. Do you have any clue what this could be. I've tried to run it under the local system account and under a specific user with sufficient rights.

Attached File  du.jpg   271.41K   34 downloads

if the attachment is hard to read, you can download it and it should be better

hope to hear from you
thanks in advance
Michiel

#5 Anastasios Dimitriou

    Newbie

  • Members
  • 11 posts
  • Gender:Male
  • Location:Greece

Posted 08 January 2009 - 01:01 PM

Hello Michiel,

I use $Uv51 on windows server 2000. In order to automatic startup $U I declared the startup type of all $U services I need to automatic startup, as Automatic (no extra utilities used). I noticed that when a service requires another one, starts it first. So, startup dependencies don't have a problem if the required service has automatic startup type.

Hope this helps,

Anastasios
Tassos

#6 men

    Hero Member

  • Root Admin
  • PipPipPipPip
  • 4,389 posts
  • Gender:Male
  • Location:Europe

Posted 08 January 2009 - 04:37 PM

Hello Michiel, Anastasios and Kenny!

The info given by Kenny is correct and I have used it recently with success on Windows XP boxes, I did not have the opportunity to test it on Windows 2003 though.

I double checked with Orsyp R&D team and they consider that Anastasios solution should work, as there are defined dependencies between the Dollar Universe services (for start & stop of the services). Checking also with our MIS team, they use this solution (services with automatic startup) successfully for Orsyp IT operations. R&D consider that there is a very low risk that a Service tries to connect to another (like ORD to IO) when this one is still starting (but has not completely started yet). So far, they confirmed they never met this issue. The solution suggested by Kenny is cleaner, the one used by Anastasios is simpler.

Michel

#7 zurel

    Newbie

  • Members
  • 5 posts

Posted 08 January 2009 - 04:40 PM

Hello Michel,

I will try then a little bit more to solve the kenny-approach and if i can't get that to work then we will fall back to option of automatic startup of the services themselves

thanks for all your input

#8 kenny

    Hero Member

  • Root Admin
  • PipPipPipPip
  • 270 posts
  • Gender:Male
  • Location:Europe

Posted 14 January 2009 - 12:38 PM

Hello Michiel,

just wanted to let you know that I could use the same solution on a Windows 2003 (Windows Server 2003 Standard Edition, Version 5.2, Service Pack 2).

Best,

Kenny

#9 zurel

    Newbie

  • Members
  • 5 posts

Posted 14 January 2009 - 12:41 PM

Hi Kenny,
under which account do you run the srvany service? Local System?

#10 kenny

    Hero Member

  • Root Admin
  • PipPipPipPip
  • 270 posts
  • Gender:Male
  • Location:Europe

Posted 14 January 2009 - 01:06 PM

Yes the univ_startup_ service runs under Local System.

Kenny

#11 men

    Hero Member

  • Root Admin
  • PipPipPipPip
  • 4,389 posts
  • Gender:Male
  • Location:Europe

Posted 22 April 2009 - 09:32 AM

Hello,

you may also want to have a look at this thread.

Michel





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users