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