Running Logi Report Server as an OS Service
You can configure Logi Report Server as an OS service. This topic describes how you can run Logi Report Server as a service of Windows, Unix, and Linux.
This topic contains the following sections:
- Running Server as a Windows Service
- Running Server as a Service on Unix
- Running Server as a Service on Linux
The tool JRservice.exe in
<install_root>\bin can assist you in installing Logi Report Server as a Windows service.
You can get the following information if you run JRservice.exe without any properties:
JRService -install [-interactive] to install the service
JRService -remove to remove the service
-interactive to enable Logi Report Server service
to interact with the desktop
StartServiceCtrlDispatcher being called.
This may take several seconds. Please wait.
- JRService -install
Running JRservice.exe with the -install property will install Logi Report Server as a Windows service. If you open the Services item in the Control Panel, you will find a service named Logi Report Server in the list.
- JRService -install -interactive
If you use the -interactive property together with -install, the service installed will run in interactive mode. That is, when you start the service, Server displays a Command Prompt window. However, if you do not provide this property when you install the service, Server does not display the Command Prompt window when you start the service. After you have installed Logi Report Server as a service, you need to restart your computer for the service installation to take effect.
- JRService -remove
Running JRservice.exe with the -remove property removes the Windows service of Logi Report Server from Windows. However, before you run this, you should stop the service.
Server reads the parameters for the Windows service of Logi Report Server from the file NTService.ini in
<install_root>\bin. In this file, you can find three parameters, as shown in the following image:
The path of the Java VM.
The Java command line for launching Logi Report Server as an independent web application server. Server calls this parameter when the service starts. In most cases you need to modify -Xms and -Xmx to specify the Java heap size. After you modify this file you need to stop and start the service again.
The Java command line for shutting down Logi Report Server. Server calls this parameter when the service stops.
You can start the Logi Report Server service using either of the following ways:
- After you have installed Server as a service, the service will start automatically each time Windows starts.
- You can directly start the service through the Services item in the Control Panel. Open the Services list, find Logi Report Server, select it, and then select Start.
You can change the parameters in the file NTService.ini in
<install_root>\bin before you start the service (for more information, see Starting Logi Report Server Using Java). For example, if you would like to set all log level to INFO, you need to append -logall to the value of StartArg as follows:
... StartArg= .....
-Dreporthome="C:\LogiReport\Server" -Dadmin.port.enabled="false" jet.server.JREntServer -logall
You can stop the Logi Report Server service using one of the following ways:
- Open the Control Panel, go to Administrative Tools, double-click Services, select Logi Report Server, and then select the Stop button if it is not disabled.
- Run the batch file CmdSender.bat in
<install_root>\binwith the localshutdown property, for example:
- Point to the button at the top right of the Server Console and select Shut Down Server from the drop-down menu.
- When using NT service to start Logi Report Server, you cannot access the mapped disk path due to JVM limitation. You should use UNC path (for example,
\\127.0.0.1\public_write) instead of the mapped disk (for example,
- When using the Local System account to run Logi Report Server as a Windows service, under some circumstances you cannot write to a UNC path (for example,
\\127.0.0.1\public_write). To solve this problem, you need to start the service as a normal Windows user.
Assume that you installed Logi Report Server to
- Write a script /etc/init.d/jrserver as follows, and make it executable.
if [ ! -d /user/report/jns ]
then # Logi Report not installed
case "$mode" in
if [ -d /user/report/jns ]
echo "Starting Logi Report Server"
if [ -d /user/report/jns ]
echo "Stopping Logi Report Server"
/user/report/jns/bin/CmdSender.sh localshutdown &
echo " Usage: "
echo " $0 start (start Logi Report Server)"
echo " $0 stop (stop Logi Report Server)"
- Create a soft link to /etc/rc2.d/S99jrserver.
-s /etc/init.d/jrserver /etc/rc2.d/S99jrserver
- Create a soft link to /etc/rc0.d/K99jrserver.
-s /etc/init.d/jrserver /etc/rc0.d/K99jrserver
You are using CentOS7.
You installed Logi Report Server to
/opt/LogiReport/Serveron the computer with the IP address 127.0.0.1.
Go to the
Create a service LRServer.service
with the content (an example):
Description=Logi Report Server
ExecReload=/bin/kill -HUP $MAINPID
If you are the root user, you can remove the two lines:
Make LRServer.service executable.
chmod +x ./LRServer.service
Start the service.
systemctl start LRServer.service
- Access Logi Report Server via http://127.0.0.1:8888.