#!/bin/sh # # Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved. # # # Start method script for hwmgmtd # . /lib/svc/share/smf_include.sh HWAGENTD_PACKAGE=ORCLhmp-hwmgmt HWAGENTD_BASEDIR=/usr/lib/ssm HWAGENTD_PID_FILE=/var/run/ssm-hwmgmtd.pid LOG_FILE_ERROR=1 NON_ORACLE_HW_STATUS=32 UNSUPPORTED_ORACLE_HW=33 VIRTUAL_ENVIRONMENT_NOT_SUPPORTED=34 $HWAGENTD_BASEDIR/hwmgmtd REPLY=$? if [ $REPLY -eq 0 ]; then exit $SMF_EXIT_OK fi if [ $REPLY -eq $LOG_FILE_ERROR ]; then echo "$SMF_FMRI cannot create/write to log file." smf_method_exit $SMF_EXIT_TEMP_DISABLE log_file_error "$SMF_FMRI cannot create/write to log file." fi if [ $REPLY -eq $NON_ORACLE_HW_STATUS ]; then echo "$SMF_FMRI is not supported on this hardware platform." smf_method_exit $SMF_EXIT_TEMP_DISABLE non_oracle_hw "$SMF_FMRI is not supported on this hardware platform." fi if [ $REPLY -eq $UNSUPPORTED_ORACLE_HW ]; then echo "$SMF_FMRI is only supported on platforms with Oracle ILOM" smf_method_exit $SMF_EXIT_TEMP_DISABLE non_oracle_hw "$SMF_FMRI is only supported on platforms with Oracle ILOM" fi if [ $REPLY -eq $VIRTUAL_ENVIRONMENT_NOT_SUPPORTED ]; then echo "$SMF_FMRI is not supported within a virtual environement" smf_method_exit $SMF_EXIT_TEMP_DISABLE non_oracle_hw "$SMF_FMRI is not supported within a virtual environement" fi smf_method_exit $SMF_EXIT_ERR_FATAL fail_to_start "$SMF_FMRI exitted with error"