summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"
}