summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-05-27 19:39:17 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-05-27 19:39:17 +0200
commit0691771c63f5532e3cf6104de6fc344eba40aa6f (patch)
treecace8ff63d96672a9069df6b8df5e378df333842
parent84479812924036b0081dd24ee59982997f072f3e (diff)
downloadbootrun-0691771c63f5532e3cf6104de6fc344eba40aa6f.tar.gz
bootrun-0691771c63f5532e3cf6104de6fc344eba40aa6f.tar.xz
add ulimit -u 500
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rw-r--r--bootrun2
1 files changed, 2 insertions, 0 deletions
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"
}