The Core Technologies Blog

Professional Software for Windows Services / 24×7 Operation


AlwaysUp 8.7: Restart your Application when the PC Resumes

We are happy to report that AlwaysUp now integrates with the Windows power management system, to provide the ability to restart your applications when the host computer resumes from a low-power state (sleep or hibernation). This option is useful if your application being run as a Windows Service fails to properly handle the “time lapse” that occurs when a PC is put to sleep and later revived.

This new, easy to use functionality is available on the Monitor tab. Simply check the box highlighted below and you will be ready to go:


Stop the application when the PC resumes

Enjoy!

Posted in AlwaysUp | Tagged , | 2 Comments

2 Responses to AlwaysUp 8.7: Restart your Application when the PC Resumes

  1. Tom says:

    How do you create a sequence of the application in AlwaysUp?
    For example I have 9 applications the I want to use in AlwaysUp but the application must be started in a proper sequence. Application 4 and 5 must start after application 1 2 and 3 start.

  2. Core Technologies Consulting says:

    You can use the “dependencies” feature of Windows Services to have some applications start before others. This functionality is available on the “Startup” tab when configuring your application in AlwaysUp.

    For example, if Application 1 must start before Application 2 you would:
    (1) Set up Application 1 in AlwaysUp
    (2) Edit Application 2 in AlwaysUp
    (3) Switch to the “Startup” tab
    (4) Check the “Ensure the following services have started” box
    (5) Check the service for Application 1 in the list
    (6) Save your settings

    Note that this will ensure that Application 1 starts before Application 2, but it will not ensure that Application 1 is *ready* before starting #2. If that is an issue for you, then we suggest setting up Application 2 to pause for a few seconds at startup (also available on the “Startup” tab).

Leave a Reply

Your email address will not be published. Required fields are marked *