|
Back
|
Main view
Periodically restart IMiS/OCR Server service
Product:
IMiS/OCR Server
Release:
7.x, 8.x, 9.x
Date:
12/30/2019
Case:
IMiS/OCR Server service is usually running unattended and can run out of memory or crash due to an unsupported input file. When such a thing occurs the solution is to restart the service. This article describes how to set up a schedule to restart the IMiS/OCR Server service periodically using Windows Task Scheduler.
Description:
First thing to do is to create a batch file containing command to stop and start the IMiS/OCR Server service. Use Notepad or a text editor of your choice and create a text file
RestartOCRServer.bat
with the following content:
net stop IMiSOCRServer
net start IMiSOCRServer
Note that
IMiSOCRServer
represents the IMiS/OCR Server service name. To check the service name first open
Services
window (
services.msc
).
Locate IMiS/OCR Server service, right click on the service and select
Properties
. Service name is located on the
General
tab on the service properties window.
Verify that the batch file actually restarts the service. Open
Command Prompt
(
cmd.exe
) with Administrator
privileges and execute
RestartOCRServer.bat
from the
command line.
Next step is to create a task to periodically restart the IMiS/OCR Server service. First open the
Task Scheduler
window (
taskschd.msc /s
).
Create a new task with the
"
Create task...
"
command. On the
General
tab select a task name and optionally, a task description.
Enable options
"Run whether user is logged on or not"
and
"Run with highest privileges"
.
On the
Triggers
tab add a new trigger using
"New..."
command. Set up a schedule on the
Settings
section. Do not forget to check the
Enabled
option.
On the
Actions
tab add a new action using
"New..."
command. Select
"Start a program"
for an
Action
and enter the location of the
RestartOCRServer.bat
file.
Select OK to create the task. You might be asked to enter Administrator credentials because
"Run with highest privileges"
option was enabled.
Related Documents:
|
Back
|
Main view
Copyright © Imaging Systems Ltd, 2024