# functions This file contains functions to be used by most or all
# shell scripts in the /etc/init.d directory.
#
-# $Id: functions,v 1.58 2000/10/22 19:30:18 mkochano Exp $
+# $Id: functions,v 1.59 2000/10/22 20:55:23 misiek Exp $
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Hacked by: Greg Galloway and Marc Ewing
# First set up a default search path.
export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
-# Make environment saner.
-unset HOME
-TMPDIR=/tmp
-TEMP=/tmp
-
# Set defaults
INIT_COL=67
MESSAGE=$1
show "$MESSAGE"; busy
shift
- if _ERRORS="`initlog -c \"$*\" 2>&1`"; then
+ if _ERRORS="`HOME=/tmp TMPDIR=/tmp initlog -c \"$*\" 2>&1`"; then
ok
else
fail; [ -n "$_ERRORS" ] && echo $_ERRORS
# And start it up.
busy
- if _ERRORS="`nice -n ${SERVICE_RUN_NICE_LEVEL:-$DEFAULT_SERVICE_RUN_NICE_LEVEL} initlog -c "$*" 2>&1`"; then
+ if _ERRORS="`HOME=/tmp TMPDIR=/tmp nice -n ${SERVICE_RUN_NICE_LEVEL:-$DEFAULT_SERVICE_RUN_NICE_LEVEL} initlog -c "$*" 2>&1`"; then
ok
else
exit_code=1