]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - init/cups.sh.in
Load cups into easysw/current.
[thirdparty/cups.git] / init / cups.sh.in
index 06f3c924b91d8c65c7b8d4ffd85d39b36db9c970..2ff418c21c1910c17b4a66041e4180db0278b368 100755 (executable)
@@ -1,26 +1,17 @@
 #!/bin/sh
 #
-# "$Id: cups.sh.in 4971 2006-01-24 14:33:18Z mike $"
+# "$Id: cups.sh.in 6649 2007-07-11 21:46:42Z mike $"
 #
 #   Startup/shutdown script for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
+#   Copyright 2007 by Apple Inc.
+#   Copyright 1997-2007 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
-#   property of Easy Software Products 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 missing or damaged please contact Easy Software Products
-#   at:
-#
-#       Attn: CUPS Licensing Information
-#       Easy Software Products
-#       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636 USA
-#
-#       Voice: (301) 373-9600
-#       EMail: cups-info@cups.org
-#         WWW: http://www.cups.org
+#   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/".
 #
 
 #### OS-Dependent Information
@@ -102,11 +93,10 @@ esac
 #### OS-Independent Stuff
 
 #
-# Set the timezone, if possible...  This allows the
-# scheduler and all child processes to know the local
-# timezone when reporting dates and times to the user. 
-# If no timezone information is found, then Greenwich
-# Mean Time (GMT) will probably be used.
+# Set the timezone, if possible...  This allows the scheduler and
+# all child processes to know the local timezone when reporting
+# dates and times to the user.  If no timezone information is
+# found, then Greenwich Mean Time (GMT) will probably be used.
 #
 
 for file in /etc/TIMEZONE /etc/rc.config /etc/sysconfig/clock; do
@@ -127,6 +117,29 @@ if test "x$TZ" != x; then
        export TZ
 fi
 
+#
+# Don't use TMPDIR environment variable from init script, as that can
+# cause cupsd to set TempDir to a user's temporary directory instead
+# of the default...
+#
+
+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...
+#
+
+if test "x$PATH" = x; then
+       PATH="/bin:/usr/bin:/sbin:/usr/sbin"
+else
+       PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH"
+fi
+
+export PATH
+
 #
 # See if the CUPS server (cupsd) is running...
 #
@@ -193,6 +206,16 @@ 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
@@ -207,5 +230,5 @@ exit 0
 
 
 #
-# End of "$Id: cups.sh.in 4971 2006-01-24 14:33:18Z mike $".
+# End of "$Id: cups.sh.in 6649 2007-07-11 21:46:42Z mike $".
 #