Changes between Version 8 and Version 9 of IntegratingOpenvpnWithNssm


Ignore:
Timestamp:
11/23/15 00:15:49 (8 years ago)
Author:
Selva Nair
Comment:

add EXIT_DELAY=2500 for nssm console stop method

Legend:

Unmodified
Added
Removed
Modified
  • IntegratingOpenvpnWithNssm

    v8 v9  
    1515set NSSM=%BASEDIR%\bin\nssm.exe
    1616set CONN=community.ovpn
     17set EXIT_DELAY=2500
    1718
    1819"%NSSM%" status %CONN% > NUL 2>&1
     
    2829"%NSSM%" set %CONN% AppRotateFiles 1 > NUL 2>&1
    2930"%NSSM%" set %CONN% DependOnService Dhcp tap0901 > NUL 2>&1
     31"%NSSM%" set %CONN% AppStopMethodConsole %EXIT_DELAY% > NUL 2>&1
    3032"%NSSM%" start %CONN% > NUL 2>&1
    3133}}}
    3234
    33 The CONN variable refers to the OpenVPN connection file you wish to launch.
     35The CONN variable refers to the OpenVPN connection file you wish to launch. The suggested EXIT_DELAY of 2500 msec may have to be increased if you use `explicit-exit-notify n` with `n > 1` in the connection configuration file.
    3436
    3537= Basic NSSM usage =