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