How to run tibhawkagent as a windows service

How to run tibhawkagent as a windows service

book

Article ID: KB0083828

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Adapter Framework 1.3.x

Description

How to run tibhawkagent as a Windows service.

Issue/Introduction

How to run tibhawkagent as a Windows service.

Environment

TIBCO ActiveMatrix Adapter Framework 1.3.x

Resolution

Execute the following steps to run tibhawkagent as a Windows service.

1). Add the following NT services parameters to "tibco_home/afx/1.3/bin/tibhawkagent.tra" . Add the NT service parameters to the tibhawkagent.tra and renamed the ntservice.name and ntservice.displayname .

# NT Service Parameters
ntservice.name=TIBHawkAgent_test
ntservice.displayname=TIBCO Hawk Agent test
ntservice.starttype=automatic
ntservice.binary.path.absolute=C:/tibco_home/afx/1.3/bin/tibhawkagent.exe
ntservice.interactive=true

Note that the ntservice.binary.path.absolute should be an absolute path.

2). Specify the application.args to th eabsolute path in C:/tibco_home/afx/1.3/bin/tibhawkagent.tra.

# Specifies the remaining arguments to pass into the application.
#application.args -file tibhawkagent.cfg (this is default one)

application.args -file C:/tibco/afx/1.3/bin/tibhawkagent.cfg

3). Open a command window and execute C:/tibco/afx/1.3/bin/tibhawkagent.exe --install

4). Refresh the Windows services. The tibhawkagent would be displayed in the Windows service.

5). Start/Stop the tibhawkagent from Windows service.