print-cleanup revision 355b4669e025ff377602b6fc7caaf30dbc218371
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#!/sbin/sh
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# CDDL HEADER START
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# The contents of this file are subject to the terms of the
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# Common Development and Distribution License, Version 1.0 only
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# (the "License"). You may not use this file except in compliance
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# with the License.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# or http://www.opensolaris.org/os/licensing.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# See the License for the specific language governing permissions
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# and limitations under the License.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# If applicable, add the following below this CDDL HEADER, with the
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner]
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# CDDL HEADER END
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens# Use is subject to license terms.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#pragma ident "%Z%%M% %I% %E% SMI"
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens. /lib/svc/share/smf_include.sh
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrenscase "$1" in
'start')
if [ -f /usr/lib/print/printd ]; then
rm -f /var/spool/print/tf* >/dev/null 2>&1
/usr/lib/print/printd &
else
echo "Error: /usr/lib/print/printd missing."
exit $SMF_EXIT_ERR_CONFIG
fi
;;
*)
echo "Usage: $0 { start }"
exit 1
;;
esac
exit $SMF_EXIT_OK