]> 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..975af256c97b6012d048933551998deca9bda466 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# "$Id: cups.sh.in 4971 2006-01-24 14:33:18Z mike $"
+# "$Id: cups.sh.in 5118 2006-02-16 14:29:53Z mike $"
 #
 #   Startup/shutdown script for the Common UNIX Printing System (CUPS).
 #
@@ -102,11 +102,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 +126,15 @@ 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
+
+
 #
 # See if the CUPS server (cupsd) is running...
 #
@@ -207,5 +215,5 @@ exit 0
 
 
 #
-# End of "$Id: cups.sh.in 4971 2006-01-24 14:33:18Z mike $".
+# End of "$Id: cups.sh.in 5118 2006-02-16 14:29:53Z mike $".
 #