[Solved] Automatic startup $U when server starts on Windows - when I (re)start the server i wan

when I (re)start the server i want to start $U as well
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

Comments

  • kennykenny EuropePosts: 248
    edited January 2009
    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
  • zurelzurel Guest Posts: 5
    Thanks Kenny,
    Sounds like an doable and good approach
    Thanks for the effort so far
    We'll go give it a try
  • zurelzurel Guest Posts: 5
    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.

    [attachment=44:du.jpg]

    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
    du.jpg 271.4K
  • Tasos DIMITRIOUTasos DIMITRIOU GreecePosts: 12 Journeyman ✭✭✭
    edited June 2009
    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
  • menmen EuropePosts: 3,942 Specialist ✭✭✭✭
    edited June 2009
    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
  • zurelzurel Guest Posts: 5
    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
  • kennykenny EuropePosts: 248
    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
  • zurelzurel Guest Posts: 5
    Hi Kenny,
    under which account do you run the srvany service? Local System?
  • kennykenny EuropePosts: 248
    Yes the univ_startup_ service runs under Local System.

    Kenny
  • menmen EuropePosts: 3,942 Specialist ✭✭✭✭
    edited April 2009
    Hello,

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

    Michel
This discussion has been closed.