# functions This file contains functions to be used by most or all
# shell scripts in the /etc/init.d directory.
#
-# $Id: functions,v 1.67 2001/09/19 08:09:56 orzech Exp $
+# $Id: functions,v 1.68 2001/10/05 18:17:13 baggins Exp $
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Hacked by: Greg Galloway and Marc Ewing
# problems with the daemon, it also closes some security problems
ulimit -c 0
- # Make sure daemons will be able to fork. Limits are set via
- # pam_limits. NOTE: this is ksh syntax - bash uses -u.
- ulimit -p unlimited
+ # Make sure daemons will be able to fork.
+ # Limits are set via pam_limits.
+ if [ -n "$KSH_VERSION" ]; then
+ ulimit -p unlimited
+ elif [ -n "$ZSH_VERSION" ]; then
+ ulimit -u unlimited
+ elif [ -n "$BASH_VERSION" ]; then
+ ulimit -u unlimited
+# elif [ -n "`$SH -c 'echo ${.sh.version}' 2>/dev/null`" ]; then
+ fi
# And start it up.
busy