Skip to main content

Schedule service restart


For different reasons, it might be good to schedule a restart of the AVIX Server that is hosted by a Windows service. For instance, in the AVIX5.0 train we've hade experiences at customers when the SFV stops answering. 

NET START can be used to start Windows services. NET STOP can be used to stop Windows services.

When typed at the command prompt, service names of two words or more must be enclosed in quotation marks. For example, NET START "Solme AviXServer" starts the Solme AviXServer service.

You can use this technique with any Windows Service responding to the NET command.

Some web resources on Windows task scheduler: 

INSTRUCTIONS

  1. Open the Windows Services Management Console by typing "services.msc" in the run box.
    1. image.png

  2. Locate the AVIX Server service and open its properties.
  3. Take note of the Service name for future use:
    1. image.png

  4. Open the Task Scheduler by typing Task in the Windows search box:
    1. image.png

  5. Create a dedicated folder named "AVIXTasks", where we will define our tasks:
    1. image.png

  6. Select Create a Basic Task from the Actions list on the right:
    1. image.png

  7. Name the task Stop AVIX Server:
    1. image.png

  8. Click Next and select Weekly Trigger:
    1. image.png

  9. Pick time(s) when there will be little activity/usage. We select 01:00 AM, two days/week here:
    1. image.png

  10. Click Next and for the Action select Start a program:
    1. image.png

  11. For the Program/Script type NET and add the arguments  Stop "SolmeAviXServer" (i.e. the service name):
    1. image.png

  12. Before Finishing, select the Open the Properties dialog option:
    1. image.png

  13. In the General tab select Run whether user is logged in or not and Run with highest privileges:
    1. image.png

  14. The task we have now defined will stop the AVIX Server service, twice weekly at a chosen time, now we need to create another task to launch it again.