Start Mule ESB as an NT service under a Windows server
Case
You would like to start a Mule ESB instance as an NT service, under a Windows server. You would also like to give a specific name and description
Fix
- add an environment variable
MULE_HOME
, with value the path of Mule install, for instance:C:\jonathan\mule-standalone-3.0.1
- edit the file
%MULE_HOME%\conf\wrapper.conf
- replace the following properties default values:
wrapper.ntservice.name=%MULE_APP% wrapper.ntservice.displayname=%MULE_APP_LONG% wrapper.ntservice.description=%MULE_APP_LONG%
- (you can also set other properties related to NT service configuration)
- launch the command:
%MULE_HOME%\bin\mule.bat install -config %MULE_HOME%\bin\mule-conf.xml
%MULE_HOME%\bin\mule.bat remove
Known issue:
On certain installations (among them the servers on which CygWin is installed), a conflict may happen between the files %MULE_HOME%\bin\mule
(standard launcher for Unix and Linux) and %MULE_HOME%\bin\mule.bat
(standard launcher for Windows). In this case, rename %MULE_HOME%\bin\mule
as %MULE_HOME%\bin\mule.OLD