diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-05-27 19:39:17 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-05-27 19:39:17 +0200 |
commit | 0691771c63f5532e3cf6104de6fc344eba40aa6f (patch) | |
tree | cace8ff63d96672a9069df6b8df5e378df333842 | |
parent | 84479812924036b0081dd24ee59982997f072f3e (diff) | |
download | bootrun-0691771c63f5532e3cf6104de6fc344eba40aa6f.tar.gz bootrun-0691771c63f5532e3cf6104de6fc344eba40aa6f.tar.xz |
add ulimit -u 500
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rw-r--r-- | bootrun | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" } |