Ho to use your EAP Controller as a Windows Service
Ho to use your EAP Controller as a Windows Service
Hardware Version : Not Clear
Firmware Version :
ISP :
Hi
I thougt I could just add a small HowTo ;)
1) You EAP Controller Software is setup and running ;)
2) Download NSSM - the Non-Sucking Service Manager ( https://nssm.cc/download)
3) Extract nssm.exe to a convinient location (I used 'C:\Program Files (x86)\TP-LINK\EAP Controller\bin' to keep things together)
4) Open a administrative shell
5) cd to the place you placed nssm.exe
6) Create a new Service using nssm: nssm install "EAP Controller"
7) Edit the Created Service: nssm edit "EAP Controller"
8) Set the following: (Adapt to your installation)
[INDENT=2]Path: [CODE]C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin\eap.exe[/CODE]
Startup Directory: [CODE]C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin\eap.exe[/CODE]
Arguments:[CODE] -server -Xmx1024m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+UseCMSCompactAtFullCollection -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[/CODE]
[/INDENT]
[INDENT=2]Description: Add one if you want
Startup type: Automatic or Automatic (delayed start)[/INDENT]
[INDENT=2]I'm using 'Local System account'
Set 'Allow service to interact with desktop'[/INDENT]
[INDENT=2]I added none[/INDENT]
[INDENT=2]Keep the defaults
[/INDENT]
[INDENT=2]Stick with the defaults[/INDENT]
[INDENT=2]I used
Throttling '1500'
'Restart application'
and delay '0'
[/INDENT]
[INDENT=2]Output and Error are nice debugging helps - I set them to:
stdout: [CODE]C:\Program Files (x86)\TP-LINK\EAP Controller\logs\svcstdout.log[/CODE]
stderr: [CODE]C:\Program Files (x86)\TP-LINK\EAP Controller\logs\svcstdout.log[/CODE]
[/INDENT]
[INDENT=2]Use it to keep your disk clean if you are using I/O[/INDENT]
[CODE]set scriptDir="C:\Program Files (x86)\TP-LINK\EAP Controller\bin"
set eapHome="C:\Program Files (x86)\TP-LINK\EAP Controller"
JAVA_HOME="%eapHome%\jre"
PATH=%JAVA_HOME%\bin;%path%[/CODE]
That's it. Working fine for 7 months now ....
Just remeber to stop the service before updating.
I needed to restart server with the last EAP Controller Update cause I forgot to stop the service ;) ...
Enjoy
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
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.
- Copy Link
- Report Inappropriate Content
Steve
- Copy Link
- Report Inappropriate Content
As of 2.5.4:
Application:
[INDENT=2][CODE]C:\Program Files (x86)\TP-LINK\EAP Controller\jre\bin\java.exe[/CODE][/INDENT]
[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:
[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
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
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.
- Copy Link
- Report Inappropriate Content
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****
- Copy Link
- Report Inappropriate Content
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 :)
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 6717
Replies: 18
Voters 0
No one has voted for it yet.