3649N/A#!/usr/sbin/sh
3649N/A#
3649N/A# CDDL HEADER START
3649N/A#
3649N/A# The contents of this file are subject to the terms of the
3649N/A# Common Development and Distribution License (the "License").
3649N/A# You may not use this file except in compliance with the License.
3649N/A#
3649N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3649N/A# or http://www.opensolaris.org/os/licensing.
3649N/A# See the License for the specific language governing permissions
3649N/A# and limitations under the License.
3649N/A#
3649N/A# When distributing Covered Code, include this CDDL HEADER in each
3649N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3649N/A# If applicable, add the following below this CDDL HEADER, with the
3649N/A# fields enclosed by brackets "[]" replaced with your own identifying
3649N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3649N/A#
3649N/A# CDDL HEADER END
3649N/A#
3649N/A#
3649N/A# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
3649N/A#
3649N/A
3649N/A# This service is managed by smf(5). Thus, this script provides
3649N/A# compatibility with previously documented init.d script behaviour.
3649N/A
3649N/Acase "$1" in
3649N/A'restart')
3649N/A # The previous init.d/sendmail restart behaviour matches
3649N/A # the smf(5) 'refresh' semantics.
3649N/A
3649N/A svcadm refresh network/smtp:sendmail
3649N/A svcadm refresh network/sendmail-client:default
3649N/A ;;
3649N/A
3649N/A'start')
3649N/A svcadm enable -t network/smtp:sendmail
3649N/A svcadm enable -t network/sendmail-client:default
3649N/A ;;
3649N/A
3649N/A'stop')
3649N/A svcadm disable -t network/smtp:sendmail
3649N/A svcadm disable -t network/sendmail-client:default
3649N/A ;;
3649N/A
3649N/A*)
3649N/A echo "Usage: $0 { start | stop | restart }"
3649N/A exit 1
3649N/A ;;
3649N/Aesac