print-cleanup revision 7c478bd95313f5f23a4c958a745db2134aa03244
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#!/sbin/sh
823c303d33c9e637a83d82208bcbafaf5f532d7bgstein#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
6f6f4a4bca281779d196acbdd5c017bb90858305trawick# Common Development and Distribution License, Version 1.0 only
6f6f4a4bca281779d196acbdd5c017bb90858305trawick# (the "License"). You may not use this file except in compliance
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# with the License.
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick#
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# or http://www.opensolaris.org/os/licensing.
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# See the License for the specific language governing permissions
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# and limitations under the License.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
4a81c8eb2a61b43a9dd0879a65feb834a6dde1d5stoddard# When distributing Covered Code, include this CDDL HEADER in each
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b69cf46e5e6190dc3a1fbadc7277bb66fd4c8998gstein# If applicable, add the following below this CDDL HEADER, with the
b69cf46e5e6190dc3a1fbadc7277bb66fd4c8998gstein# fields enclosed by brackets "[]" replaced with your own identifying
b69cf46e5e6190dc3a1fbadc7277bb66fd4c8998gstein# information: Portions Copyright [yyyy] [name of copyright owner]
b69cf46e5e6190dc3a1fbadc7277bb66fd4c8998gstein#
225094adcf0dbac3a2f8973de864486ab087ce20rbb# CDDL HEADER END
225094adcf0dbac3a2f8973de864486ab087ce20rbb#
225094adcf0dbac3a2f8973de864486ab087ce20rbb#
225094adcf0dbac3a2f8973de864486ab087ce20rbb# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
225094adcf0dbac3a2f8973de864486ab087ce20rbb# Use is subject to license terms.
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb#
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb#pragma ident "%Z%%M% %I% %E% SMI"
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb. /lib/svc/share/smf_include.sh
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddardcase "$1" in
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard'start')
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj if [ -f /usr/lib/print/printd ]; then
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj rm -f /var/spool/print/tf* >/dev/null 2>&1
31a130dc6ed3face8b004f32ce84f8a1342d920emanoj /usr/lib/print/printd &
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj else
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard echo "Error: /usr/lib/print/printd missing."
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard exit $SMF_EXIT_ERR_CONFIG
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard fi
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard ;;
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard*)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard echo "Usage: $0 { start }"
10b386767f6c87b45937244371cb751f0b454d16wrowe exit 1
10b386767f6c87b45937244371cb751f0b454d16wrowe ;;
863ec32e13d6c9619414c48b51109f3dca99cbc6wroweesac
863ec32e13d6c9619414c48b51109f3dca99cbc6wroweexit $SMF_EXIT_OK
75960f20f88dad6bc67892c711c429946063d133stoddard