If the application controlled by the Cmdline resource is dependent on the SMF service running in multi-user mode, it is necessary to set up a dependency between the SMF service and RMS.
With RMS stopped, execute the following procedure on each node in the cluster to set up a dependency.
# /usr/bin/script -a /var/opt/reliant/log/smfchg_cnf.log # /usr/sbin/svccfg -s svc:/milestone/smawrhvto addpg <dependency name(optional)> dependency # /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop <dependency name>/grouping = astring: optional_all # /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop <dependency name>/entities = fmri: <SMF service name>
# /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop <dependency name>/restart_on = astring: none # /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop <dependency name>/type = astring: service # /usr/sbin/svcadm refresh svc:/milestone/smawrhvto # exit
Example
If the application controlled by the Cmdline resource is dependent on the "svc:/network/sendmail-client" service and the dependency name is "fuji".
# /usr/bin/script -a /var/opt/reliant/log/smfchg_cnf.log # /usr/sbin/svccfg -s svc:/milestone/smawrhvto addpg fuji dependency # /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop fuji/grouping = astring: optional_all # /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop fuji/entities = fmri: svc:/network/sendmail-client # /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop fuji/restart_on = astring: none # /usr/sbin/svccfg -s svc:/milestone/smawrhvto setprop fuji/type = astring: service # /usr/sbin/svcadm refresh svc:/milestone/smawrhvto # exit
Without the configurations above, the sequence relationship where the SMF service will be shut down after the RMS service has been shut down will not be secured. This can result a failure in the Cmdline resource when the OS is shut down.