Steps
- Create a batch script
- Open up Notepad with Administrator Rights
- Insert the following text into the document and save the file
-
NET STOP "ChronicallRecordingLibrary"
NET START "ChronicallRecordingLibrary"
-
- Change the text file extension from .txt to .bat
- You may need to show file extensions, make sure you aren't changing the name of the file itself, just the extension
- Save the document in a safe spot (Like creating a ChronicallRecordingLibrary-Restarter folder within the Chronicall/ACR folder)
- Open up Notepad with Administrator Rights
- Create the Task in Windows Task Scheduler
- Open up Windows Task Scheduler
- In the Actions column on the right select Create Task...
- In the General tab give the Task a name and make sure that both Run whether user is logged in or not and Run with highest privileges are selected
- NOTE: Be sure to also select Configure for for the correct OS you are using (Here I had to change it from Windows 10 to Windows 2016) to match the server I was setting this up for
- In the Triggers tab select New... in the lower left
- Select the settings in Edit Trigger that are shown below
- Here I wanted the service to bounce after the ChronicallServer bounces at 12:01 AM Thursday, so I set this to trigger 4 minutes after at 12:05
- Here I wanted the service to bounce after the ChronicallServer bounces at 12:01 AM Thursday, so I set this to trigger 4 minutes after at 12:05
- In the Actions tab select New... in the lower left
- In the Conditions tab select the settings same as below
- Same with the Settings tab
- On the Actions Tab, click New and then select the Batch file you have uploaded to a safe location so it doesn't accidentally get deleted
- Here I set the batch file inside a folder inside the Chronicall Install Directory, titled something like Batch File to Restart ChronicallRecordingLibrary
- Make sure you are selecting a .bat file, not a .txt file
- Match the settings here in the Conditions tab
- Since we want the Task to Run whether a user is logged in or not and to Run with highest privileges when you try to save the task it will ask for you to provide the login credentials for the Admin on the server. Go ahead and provide those here
- Once properly configured look in the Task Scheduler Library for your new Task and then select Run from the Actions bar on the right to get the Task started
- Open up Windows Task Scheduler