#!/usr/sbin/sh # # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. # . /lib/svc/share/smf_include.sh if [ -z "$SMF_FMRI" ]; then echo "this script can only be invoked by smf(5)" exit $SMF_EXIT_ERR_NOSMF fi # # No need to start the daemon in a non-global zone; disable the service # instead # smf_is_globalzone if [ $? -eq 1 ] ; then smf_method_exit $SMF_EXIT_TEMP_DISABLE non_global_zone \ "$SMF_FMRI does not run in a non-global zone" fi /lib/inet/in.dlmpd # # No need to start the daemon if no aggregation is configured # case $? in '0') exit $SMF_EXIT_OK;; '1') exit $SMF_EXIT_ERR_FATAL;; *) smf_method_exit $SMF_EXIT_TEMP_DISABLE no_dlmp_aggregation \ "$SMF_FMRI does not run if no DLMP aggregation is configured";; esac