Auto-starting in Solaris 10 environments
Solaris 10 uses SMF (Service Management Facility) for creating and managing services. To enable MFT Gateway as a service perform the following:
-
As
root
user, create a user and group namedmftgateway
. -
As
root
user, run the commandusermod -K defaultpriv=basic,net_privaddr mftgateway
to grantmftgateway
user permissions to run services on ports less than 1024. -
As
mftgateway
user, run installer for Solaris as described in Installing on Solaris. -
Open the sample SMF manifest
file gateway_smf.xml
found in the MFT Gateway installation directory usingvi
or other text editor. -
Change references to
/opt/MFT_Gateway
with the absolute path of MFT Gateway installation directory. -
As
root
user, validate SMF manifest file usingsvccfg validate gateway_smf.xml
command. -
As
root
user, import SMF manifest file usingsvccfg import gateway_smf.xml
command. -
As
root
user, enable service usingsvcadm enable svc:/application/mftgateway:default
command -
Check that service was started successfully and not in maintenance using
svcs -x mftgateway:default
command. -
Verify that MFT Gateway Service is running using
netstat -na | grep 20881
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