From 0691771c63f5532e3cf6104de6fc344eba40aa6f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 27 May 2011 19:39:17 +0200 Subject: add ulimit -u 500 Signed-off-by: Florian Pritz --- bootrun | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootrun b/bootrun index a827475..4f49a3c 100644 --- a/bootrun +++ b/bootrun @@ -18,6 +18,7 @@ start_run() { chmod 600 "$rclog" chown "$rcuser" "$rclog" echo "Bootrun on $(date)" >> "$rclog" + ulimit -u 500 su -l "$rcuser" -c "$1" &>> "$rclog" } @@ -43,6 +44,7 @@ stop_run() { chmod 600 "$rclog" chown "$rcuser" "$rclog" echo "Shutdownrun on $(date)" >> "$rclog" + ulimit -u 500 su -l "$rcuser" -c "/usr/lib/bootrun.timoutrun $1" &>> "$rclog" } -- cgit v1.2.3-24-g4f1b