X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=scheduler%2Fcups.sh.in;h=89ac36de31e7765d6c780ecf963c28587635bc76;hb=eff8c82f6a43ee1816e3b5899381d525c3231d37;hp=08aa883d1fbe1890e24b794ab96c80b1558c17ca;hpb=3dd9c340583c44d4dcb7223efbd0a815e0027ff7;p=thirdparty%2Fcups.git diff --git a/scheduler/cups.sh.in b/scheduler/cups.sh.in index 08aa883d1..89ac36de3 100644 --- a/scheduler/cups.sh.in +++ b/scheduler/cups.sh.in @@ -1,17 +1,12 @@ #!/bin/sh # -# "$Id$" +# Startup/shutdown script for CUPS. # -# Startup/shutdown script for CUPS. +# Copyright © 2007-2013 by Apple Inc. +# Copyright © 1997-2007 by Easy Software Products, all rights reserved. # -# Copyright 2007-2012 by Apple Inc. -# Copyright 1997-2007 by Easy Software Products, all rights reserved. -# -# These coded instructions, statements, and computer programs are the -# property of Apple Inc. and are protected by Federal copyright -# law. Distribution and use rights are outlined in the file "LICENSE.txt" -# which should have been included with this file. If this file is -# file is missing or damaged, see the license at "http://www.cups.org/". +# Licensed under Apache License v2.0. See the file "LICENSE" for more +# information. # #### OS-Dependent Information @@ -115,8 +110,7 @@ unset TMPDIR # # Make sure we have the standard program directories in the path -# since some operating systems (this means YOU HP-UX!) don't -# provide a standard path on boot-up... +# since some operating systems don't provide a standard path on boot-up... # if test "x$PATH" = x; then @@ -132,19 +126,9 @@ export PATH # case "`uname`" in - HP-UX* | AIX* | SINIX*) - pid=`ps -e | awk '{if (match($4, ".*/cupsd$") || $4 == "cupsd") print $1}'` - ;; SunOS*) pid=`ps -e | nawk '{if (match($4, ".*/cupsd$") || $4 == "cupsd") print $1}'` ;; - UnixWare*) - pid=`ps -e | awk '{if (match($6, ".*/cupsd$") || $6 == "cupsd") print $1}'` - . /etc/TIMEZONE - ;; - OSF1*) - pid=`ps -e | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'` - ;; Linux* | *BSD* | Darwin*) pid=`ps ax | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'` ;; @@ -197,16 +181,6 @@ case $1 in fi ;; - start_msg) - # HP-UX non-standard... - echo "Starting CUPS Server" - ;; - - stop_msg) - # HP-UX non-standard... - echo "Starting CUPS Server" - ;; - *) echo "Usage: cups {reload|restart|start|status|stop}" exit 1 @@ -218,8 +192,3 @@ esac # exit 0 - - -# -# End of "$Id$". -#