esProc Boot Time Auto-Start Service

esProc Boot Time Auto-Start Service

Download the latest esProc version at Download esProc SPL .

esProc offers installation packages for Windows/Linux/Max and you can download the suitable one on the above webpage. An installation package encapsulates esProc IDE designer, data storage service, node service, HTTP service, ODBC service and HSQL sample databases.

This article introduces how to configure the auto-start of a specific esProc service at computer boot-up. Take the HTTP service as an example:

Windows

Install .exe file

Install .exe file under any directory, such as D:/raqsoft.

Create esProc service auto-start .bat file

By default, an esProc service auto-start .bat file will be automatically created under installation root directory】/esProc/bin after the software is installed.

Create esProc service auto-start .bat file

Create the .bat file to auto-start the esProc service on boot-up and place it in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp.

As shown below, we create test.bat:


Note:To auto-start esProc IDE designer, node service or ODBC service on boot-up, you can modify the .bat command according to the following corresponding direction:

(1) Run call "D:\raqsoft\esProc\bin\startup.bat" to launch esProc designer;

(2) Run call “D:\raqsoft\esProc\bin\ServerConsole.bat” -p to launch non-GUI node service;

(3) Run call “D:\raqsoft\esProc\bin\ServerConsole.bat” -o to launch non-GUI ODBC service;

(4) Run call “D:\raqsoft\esProc\bin\ServerConsole.bat” -h to launch non-GUI HTTP service;

(5) Run call “D:\raqsoft\esProc\bin\ServerConsole.bat” -a to launch non-GUI node service, ODBC service and HTTP service.

Linux:

Install .bin compressed file

Here SUSE Linux is used.

Install.bin file under any directory, such as /home/asus/raqsoft.

Create esProc service start .sh file

By default, an esProc service start .sh file will be automatically created under installation root directory】/esProc/bin after the software is installed.

To make sure the Java environment variable configurations are loaded at the boot time auto-start, you need to add JAVA_HOME variable to ServerConsole.sh manually according to the following method highlighted by the red box:

Add boot time auto-start configurations for Linux

1. Use “chmod 777 /etc/init.d/boot.local” command to grant execution privilege to boot.local file.

2. Input “vim /etc/init.d/boot.local” command to edit boot.local.

Edit boot time esProc service auto-start script:

sh /home/asus/raqsoft/esProc/bin/ServerConsole.sh -h &

3. Press ESC and then :wq to save the script and exit the editing mode.

Below is the edited boot.local file:

Note:

To auto-start esProc IDE designer, node service or ODBC service on boot-up, you can modify the command in boot.local according to the following corresponding direction:

(1) Run sh /home/asus/raqsoft/esProc/bin/startup.bat to launch esProc designer;

(2) Run sh /home/asus/raqsoft/esProc/bin/ServerConsole.bat -p & to launch non-GUI node service;

(3) Run sh /home/asus/raqsoft/esProc/bin/ServerConsole.bat -o & to launch non-GUI ODBC service;

(4) Run sh /home/asus/raqsoft/esProc/bin/ServerConsole.bat -h & to launch non-GUI HTTP service;

(5) Run sh /home/asus/raqsoft/esProc/bin/ServerConsole.bat -a & to launch non-GUI node service, ODBC service and HTTP service.

Leave a Reply