Set a ulimit on monitor_db to prevent it and all of its subprocesses from
ever growing unreasonably. None of them should use that much ram.
Signed-off-by: Gregory Smith <gps@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4062 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/utils/autotest.init b/utils/autotest.init
index a427d3a..136473d 100755
--- a/utils/autotest.init
+++ b/utils/autotest.init
@@ -22,8 +22,9 @@
cd /tmp
log_daemon_msg "Starting monitor_db_babysitter"
- start-stop-daemon --start --quiet --chuid $BECOME_USER \
- --background --exec $BASE_DIR/scheduler/monitor_db_babysitter
+ ( ulimit -v 819200 ; \
+ start-stop-daemon --start --quiet --chuid $BECOME_USER \
+ --background --exec $BASE_DIR/scheduler/monitor_db_babysitter )
}
stop_daemon() {