summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsatellit_installer/static_files/slxadmin/opt/openslx/slxadmin-cronscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-cronscript b/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-cronscript
index 4ab7a21..9ff600b 100755
--- a/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-cronscript
+++ b/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-cronscript
@@ -9,7 +9,7 @@ OLDPID=
echo $$ > "$PIDFILE"
FILE=$(mktemp)
-if ! php /srv/openslx/www/slx-admin/api.php cron >"$FILE" 2>&1; then
+if ! timeout -k 3 60 php /srv/openslx/www/slx-admin/api.php cron >"$FILE" 2>&1; then
php /srv/openslx/www/slx-admin/api.php cron --crashreport "$FILE"
fi
rm -f -- "$FILE" "$PIDFILE"