Title: [opsview] [11290] Fixed possible error messages on RH systems due to running ulimit
- Revision
- 11290
- Author
- tvoon
- Date
- 2013-01-30 14:27:06 +0000 (Wed, 30 Jan 2013)
Log Message
Fixed possible error messages on RH systems due to running ulimit
Modified Paths
Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES 2013-01-30 13:40:16 UTC (rev 11289)
+++ trunk/CHANGES 2013-01-30 14:27:06 UTC (rev 11290)
@@ -53,6 +53,7 @@
Fix cell borders in keyword view
The reload timings are now centred
Fixed acknowledgement option to only appear in menus if the object is unhandled
+ Fixed possible error message on RH systems when using init scripts
3.20120925
FEATURES:
Modified: trunk/opsview-core/bin/rc.opsview
===================================================================
--- trunk/opsview-core/bin/rc.opsview 2013-01-30 13:40:16 UTC (rev 11289)
+++ trunk/opsview-core/bin/rc.opsview 2013-01-30 14:27:06 UTC (rev 11290)
@@ -57,8 +57,9 @@
exec su - nagios -c "$cmd $@"
fi
-# enable coredumps for the user
-ulimit -c unlimited
+# Enable coredumps for the user
+# We hide any errors as it is not important
+ulimit -c unlimited > /dev/null 2>&1
# Redirect fd3 which is left open by Debian's apt-get install process
exec 3>/dev/null
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins