smtp-sendmail revision da978630d1f0b07bd370e402117d4d9b17bac427
4812N/A# The contents of this file are subject to the terms of the 4812N/A# Common Development and Distribution License (the "License"). 4812N/A# You may not use this file except in compliance with the License. 4812N/A# See the License for the specific language governing permissions 4812N/A# and limitations under the License. 4812N/A# When distributing Covered Code, include this CDDL HEADER in each 4812N/A# If applicable, add the following below this CDDL HEADER, with the 4812N/A# fields enclosed by brackets "[]" replaced with your own identifying 4812N/A# information: Portions Copyright [yyyy] [name of copyright owner] 4812N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 4812N/A# Use is subject to license terms. 4812N/A # * MODE should be "-bd" or null (MODE= or MODE="") or 4812N/A # left alone. Anything else and you're on your own. 4812N/A # * QUEUEOPTION should be "p" or null (as above). 4812N/A # * QUEUEINTERVAL should be set to some legal value; 4812N/A # sanity checks are done below. 4812N/A # * OPTIONS are catch-alls; set with care. 4812N/A # ETRN_HOSTS should be of the form 4812N/A # "s1:c1.1,c1.2 s2:c2.1 s3:c3.1,c3.2,c3.3" 4812N/A # i.e., white-space separated groups of server:client where 4812N/A # client can be one or more comma-separated names; N.B. that 4812N/A # the :client part is optional; see etrn(1M) for details. 4812N/A # server is the name of the server to prod; a mail queue run 4812N/A # is requested for each client name. This is comparable to 4812N/A # See RFC 1985 for more information. 4812N/A # Need to kill the entire service contract to kill all sendmail related 4812N/A # Since sendmail spawns user processes out of .forward files, it is 4812N/A # possible that some of these are not responding to TERM. If the 4812N/A # contract did not empty after TERM, move on to KILL. 4812N/A echo "Usage: $0 { start | stop | refresh }"