[Kroupware] Kroupware /kolab/etc/rc fix

Joshua Schmidlkofer menion at asylumwear.com
Wed Apr 16 12:39:13 CEST 2003


I don't know if this has been addressed, but I applied the had problems
with rc spawning thousands of processes.   I discovered that under some
circumstances temp files get left over in /tmp.  rc.[pid].tmp.  I
actually started having collisions with the leftovers.  When that
happened I would get thousands of processes killing my machine, and it
would never end.  Here is how I fixed it.

I don't know if people like attachments or not.  I see some, so I will
attach and post, please let me know if that is !bad!.  

Also, I added LC adjustments for Redhat 8.  Don't know if that is bad or
not.

js

-------------- next part --------------
--- rc	2003-04-16 03:45:09.000000000 -0700
+++ rc-kolab-fixed.sh	2003-04-16 03:44:31.000000000 -0700
@@ -24,6 +24,13 @@
 ##  SUCH DAMAGE.
 ##
 
+## Redhat 8 locale override
+LC_ALL=C
+LC_MESSAGES=C
+LANG=C
+SUPPORTED=C
+
+
 #   program name, version and date
 progname="rc"
 progvers="1.0.9"
@@ -96,7 +103,8 @@
 else
     tmpdir="/tmp"
 fi
-tmpfile="$tmpdir/rc.$$.tmp"
+tmpfile=`mktemp $tmpdir/rc.$$.tmp.XXXXXX`
+#tmpfile="$tmpir/rc.$$.tmp"
 
 #   handle --query option
 if [ ".$query" = .1 ]; then


More information about the Kroupware mailing list