diff options
author | Simon Rettberg | 2024-07-03 17:30:46 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-07-03 17:30:46 +0200 |
commit | c5a1b18dc455efb3f926e5ad39fcb9e0310e833b (patch) | |
tree | 363962ec4ddc17cb0adf12419507c13f42c2d1d7 /satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-cronscript | |
parent | [SSPS] Order timesync before according targets (diff) | |
download | setup-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/static_files/slxadmin/opt/openslx/slxadmin-cronscript')
-rwxr-xr-x | satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-cronscript | 2 |
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" |