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