This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
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.
Ho to use your EAP Controller as a Windows Service
Model :
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]
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
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)
Application:
[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]
Details:
[INDENT=2]Description: Add one if you want
Startup type: Automatic or Automatic (delayed start)[/INDENT]
Log on:
[INDENT=2]I'm using 'Local System account'
Set 'Allow service to interact with desktop'[/INDENT]
Dependencies:
[INDENT=2]I added none[/INDENT]
Process:
[INDENT=2]Keep the defaults
[/INDENT]
Shutdown:
[INDENT=2]Stick with the defaults[/INDENT]
Exit Actions:
[INDENT=2]I used
Throttling '1500'
'Restart application'
and delay '0'
[/INDENT]
I/O:
[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]
File rotation:
[INDENT=2]Use it to keep your disk clean if you are using I/O[/INDENT]
Environment:
[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]
[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