ovs-ctl.in: Set hard limit for core files created.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 11 Mar 2013 20:07:11 +0000 (13:07 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 11 Mar 2013 20:08:45 +0000 (13:08 -0700)
Currently we set a soft limit while defining the maximum size of
core files. If there is already a hard limit set that is lesser
than the soft limit we are setting, it will fail.

Since our startup scripts start with root permissions, it looks
fine to set the hard limit directly instead.

Reported-by: Dan Wendlandt <dan@nicira.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
utilities/ovs-ctl.in

index a7b88ea..6bad187 100755 (executable)
@@ -157,7 +157,7 @@ set_system_ids () {
 
 check_force_cores () {
     if test X"$FORCE_COREFILES" = Xyes; then
-        ulimit -Sc 67108864
+        ulimit -c 67108864
     fi
 }