#!/bin/sh
#
-# "$Id: cups.sh.in 4493 2005-02-18 02:09:53Z mike $"
+# "$Id$"
#
# Startup/shutdown script for the Common UNIX Printing System (CUPS).
#
#### 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
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...
#
#
-# End of "$Id: cups.sh.in 4493 2005-02-18 02:09:53Z mike $".
+# End of "$Id$".
#