Auto-starting Agent in Solaris 10 environments
Solaris 10 uses SMF (Service Management Facility) for creating and managing services. To enable MFT Gateway Agent as a service perform the following.
-
As
root
user, create a user and group namedagent
. -
As
root
user, run the commandusermod -K defaultpriv=basic,net_privaddr agent
to grantagent
user permissions to run services on ports less than 1024. -
As
agent
user, run installer for Solaris as described in Installing on Solaris -
Open the sample SMF manifest file
agent_smf.xml
found in the MFT Gateway Agent installation directory usingvi
or other text editor. -
Change references to
/opt/MFT_Gateway_Agent
with the absolute path of MFT Gateway Agent installation directory. -
As
root
user, validate SMF manifest file usingsvccfg validate agent_smf.xml
command. -
As
root
user, import SMF manifest file usingsvccfg import agent_smf.xml
command. -
As
root
user, enable service usingsvcadm enable svc:/application/mftgatewayagent:default
command. -
Check that service was started successfully and not in maintenance using
svcs -x mftgatewayagent:default
command.
See also
For more information on creating services using SMF please see the following links:
http://www.sun.com/software/solaris/howtoguides/smfmanifesthowto.jsp
http://www.sun.com/software/solaris/howtoguides/servicemgmthowto.jsp