#!/sbin/sh
#
#ident	"@(#)postfix	1.0	05/04/10 SY"

# This service is managed by smf(5).  Thus, this script provides
# compatibility with previously documented init.d script behaviour.

case "$1" in
'restart')
	# The previous init.d/postfix restart behaviour matches
	# the smf(5) 'refresh' semantics.

	svcadm refresh network/smtp:postfix
	;;

'start')
	svcadm enable -t network/smtp:postfix
        ;;

'stop')
	svcadm disable -t network/smtp:postfix
        ;;

*)
        echo "Usage: $0 { start | stop | restart }"
        exit 1
        ;;
esac
