Ho to use your EAP Controller as a Windows Service

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
12

Ho to use your EAP Controller as a Windows Service

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
18 Reply
Re:Ho to use your EAP Controller as a Windows Service
2017-11-02 09:59:18
I setup a task schedule that launches EAP 2.4.8 on logon, can also be configured at startup instead.
  0  
  0  
#12
Options
Re:Ho to use your EAP Controller as a Windows Service
2017-11-24 01:24:41
Hi. I had problems with NSSM method after upgrading to EAP2.4.8, but I found the solution. There were some additional environment variables required.

At CMD promt use NSSM edit "your service name" to reconfigure the service.

In the 'argumens' field -

-server -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -Deap.home="C:\Program Files (x86)\TP-LINK\EAP Controller" -cp "C:\Program Files (x86)\TP-LINK\EAP Controller\lib\com.tp-link.eap.start-0.0.1-SNAPSHOT.jar;C:\Program Files (x86)\TP-LINK\EAP Controller\lib\*;C:\Program Files (x86)\TP-LINK\EAP Controller/external-lib/*" com.tp_link.eap.start.EapMain

On the Enviroment tab add the following lines.

set SCRIPT_DIR=%~dp0
set EAP_HOME=%SCRIPT_DIR%..
JAVA_HOME="%eap_Home%\jre"
set JAVA_TOOL=%EAP_HOME%\jre\bin\eap.exe
set DB_FOLDER=%EAP_HOME%\data\db
set MAP_FOLDER=%EAP_HOME%\data\map
set PORTAL_FOLDER=%EAP_HOME%\data\portal
PATH=%JAVA_HOME%\bin;%path%

These came from start.bat in the application\bin folder.


Good luck.
  0  
  0  
#13
Options
Re:Ho to use your EAP Controller as a Windows Service
2017-11-28 19:44:10
Check my latest post.

Steve
  0  
  0  
#14
Options
Update for EAP 2.5.x
2018-01-02 17:17:50
Here just a small update .... all working like in 1st post just some settings to change for 2.5.x to work
As of 2.5.4:
Application:
Path:

[INDENT=2][CODE]C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin\java.exe[/CODE][/INDENT]
Arguments:

[INDENT=2][CODE]-server -Xms128m -Xmx1024m -XX:MaxHeapFreeRatio=60 -XX:MinHeapFreeRatio=30 -XX:+UseSerialGC -XX:+HeapDumpOnOutOfMemoryError -Deap.home="C:\Program Files (x86)\TP-LINK\EAP Controller" -cp "C:\Program Files (x86)\TP-LINK\EAP Controller\lib\com.tp-link.eap.start-0.0.1-SNAPSHOT.jar;C:\Program Files (x86)\TP-LINK\EAP Controller\lib\*" com.tp_link.eap.start.EapMain start[/CODE][/INDENT]
Environment:
Environment Variables:

[INDENT=2][CODE]set scriptDir="C:\Program Files (x86)\TP-LINK\EAP Controller\bin"
set eapHome="C:\Program Files (x86)\TP-LINK\EAP Controller"
JAVA_HOME="C:\Program Files (x86)\TP-LINK\EAP Controller\jre"
PATH="C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin";%path%
DB_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\db"
MAP_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\map"
PORTAL_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\portal"[/CODE][/INDENT]

Ciao
ht_MiCrO
  0  
  0  
#15
Options
Re:Ho to use your EAP Controller as a Windows Service
2018-01-10 10:47:49
In EAP Controller_2.5.4, the "eap.exe" file was changed to "java.exe", confirmed that change the path and startup directory from "eap.exe" to "java.exe" can fix.
  0  
  0  
#16
Options
Re:Ho to use your EAP Controller as a Windows Service
2018-09-12 08:22:24

Hello everyone

 

Its not working anymore in latest version of controller (3.0.2)

 

TP-LINK must do something about this because we use this for portal authentication and everytime there is a power failure or anything else the whole system goes down.

  0  
  0  
#17
Options
Re:Ho to use your EAP Controller as a Windows Service
2018-09-12 10:02:13

Ok. I made it to work in 3.0.2

 

here are the settings I used in nssm

 

PATH

C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin\java.exe

STARTUP

C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin

 

Arguments

-server -Xms128m -Xmx1024m -XX:MaxHeapFreeRatio=60 -XX:MinHeapFreeRatio=30 -XX:+UseSerialGC -XX:+HeapDumpOnOutOfMemoryError -Deap.home="C:\Program Files (x86)\TP-LINK\EAP Controller" -cp "C:\Program Files (x86)\TP-LINK\EAP Controller\lib\com.tp-link.eap.start-0.0.1-SNAPSHOT.jar;C:\Program Files (x86)\TP-LINK\EAP Controller\lib\*" com.tp_link.eap.start.EapMain start

 

Enviroment

set scriptDir="C:\Program Files (x86)\TP-LINK\EAP Controller\bin"
set eapHome="C:\Program Files (x86)\TP-LINK\EAP Controller"
JAVA_HOME="C:\Program Files (x86)\TP-LINK\EAP Controller\jre"
PATH="C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin";%path%
DB_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\db"
MAP_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\map"
PORTAL_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\portal"

 

 

 

**** Do not check the override button****

  1  
  1  
#18
Options
Re:Re:Ho to use your EAP Controller as a Windows Service
2018-09-13 16:51:15

DataLab wrote

Ok. I made it to work in 3.0.2

 

here are the settings I used in nssm

 

PATH

C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin\java.exe

STARTUP

C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin

 

Arguments

-server -Xms128m -Xmx1024m -XX:MaxHeapFreeRatio=60 -XX:MinHeapFreeRatio=30 -XX:+UseSerialGC -XX:+HeapDumpOnOutOfMemoryError -Deap.home="C:\Program Files (x86)\TP-LINK\EAP Controller" -cp "C:\Program Files (x86)\TP-LINK\EAP Controller\lib\com.tp-link.eap.start-0.0.1-SNAPSHOT.jar;C:\Program Files (x86)\TP-LINK\EAP Controller\lib\*" com.tp_link.eap.start.EapMain start

 

Enviroment

set scriptDir="C:\Program Files (x86)\TP-LINK\EAP Controller\bin"
set eapHome="C:\Program Files (x86)\TP-LINK\EAP Controller"
JAVA_HOME="C:\Program Files (x86)\TP-LINK\EAP Controller\jre"
PATH="C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin";%path%
DB_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\db"
MAP_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\map"
PORTAL_FOLDER="C:\Program Files (x86)\TP-LINK\EAP Controller\data\portal"

 

 

 

**** Do not check the override button****

You are wonderful Now I have solved a big problem :)

  0  
  0  
#20
Options
Related Articles