blob: b1d13a77a00987304cdb38f48f761e2b8b30a42b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-ab,v 1.9 2009/12/16 22:10:25 spz Exp $
--- scripts/news.daily.in.orig 2009-05-21 22:08:33.000000000 +0200
+++ scripts/news.daily.in
@@ -232,17 +232,17 @@ then
cd "${PATHSPOOL}/${INNFEEDSPOOL}"
# Find the PIDs of innfeed.
- LOCKS=`cat *.lock 2>/dev/null | ${SORT} -u`
+ INNFEEDLOCKS=`cat *.lock 2>/dev/null | ${SORT} -u`
# Process files like "innfeed-dropped.A001703" where
- # 1703 is not in $LOCKS.
+ # 1703 is not in $INNFEEDLOCKS.
for file in `find . -name "innfeed-dropped*" -print`
do
PID=`echo "$file" | ${SED} 's/^.*[A-Z]0*//'`
FOUND=false
- for LOCK in $LOCKS
+ for INNFEEDLOCK in $INNFEEDLOCKS
do
- if [ "$PID" = "$LOCK" ]
+ if [ "$PID" = "$INNFEEDLOCK" ]
then
FOUND=true
fi
@@ -256,6 +256,10 @@ fi
cd ${PATHETC}
+## Unlimit
+ulimit -d `ulimit -H -d`
+ulimit -n `ulimit -H -n`
+
## Show the status of the news system.
${DOSTAT} && {
${INNSTAT}
|