Command: Stop Service & Start Service ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • linhardt
    Forum Member
    • Jun 2004
    • 11

    Command: Stop Service & Start Service ???

    I have the command "Stop Service" and "Start Service" in my setup.

    "Stop Service" stops the MySQL Server before installing files and "Start Service" starts the MySQL Server again after installing files.

    My question is that sometimes, but not all the time, I get the error that the "Start Service" failed. I am guessing that sometimes the setup program I created is running faster than it takes the MySQL Server to start, and not allowing the server to completely start before the "Finish" page runs.

    Is this correct, and what can be done about it? Under the "Start Service" command there is nothing that tells it to wait to make sure that the sever has the time to start.

    Or is there something else that is happening?

    It is not that big of a deal, because if you re-run the setup again it usually works fine. But it sometimes may take a couple runs to get it to run correctly.

    Just curious of what the problem could be and how to fix it.

    Thanks!
  • Adam
    Indigo Rose Staff Member
    • May 2000
    • 2149

    #2
    Did you try increasing the timout limit? That helps sometimes.

    Adam Kapilik

    Comment

    • linhardt
      Forum Member
      • Jun 2004
      • 11

      #3
      Where is the timeout limit in Setup Factory 6.0?? I cannot find where to adjust it?

      Comment

      • Adam
        Indigo Rose Staff Member
        • May 2000
        • 2149

        #4
        My bad. The timeout feature is in the create service action.

        You could try to start it again if it fails. Here is the psudo code:

        Start Service (......)
        IF (%LastErrorNum% <> 0)
        Start Service (.......)
        END IF

        This could give you a couple of stabs at it.

        Adam Kapilik

        Comment

        Working...
        X