summaryrefslogtreecommitdiffstats
path: root/satellit_installer
diff options
context:
space:
mode:
authorSimon Rettberg2024-07-03 17:30:46 +0200
committerSimon Rettberg2024-07-03 17:30:46 +0200
commitc5a1b18dc455efb3f926e5ad39fcb9e0310e833b (patch)
tree363962ec4ddc17cb0adf12419507c13f42c2d1d7 /satellit_installer
parent[SSPS] Order timesync before according targets (diff)
downloadsetup-scripts-c5a1b18dc455efb3f926e5ad39fcb9e0310e833b.tar.gz
setup-scripts-c5a1b18dc455efb3f926e5ad39fcb9e0310e833b.tar.xz
setup-scripts-c5a1b18dc455efb3f926e5ad39fcb9e0310e833b.zip
[SSPS] slxadmin: Add timeout to php cron script
Diffstat (limited to 'satellit_installer')
-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"