HF RL Explorer

Task: Conditional Nginx Restart Based on Configuration Test

Task: Conditional Nginx Restart Based on Configuration Test: a task in Terminal-Lego-15k (Harbor dataset). Create a shell script that safely restarts or reloads nginx only after the configuration test passes successfully. The script should prevent nginx from crashing due to configuration errors by…

The task

Create a shell script that safely restarts or reloads nginx only after the configuration test passes successfully. The script should prevent nginx from crashing due to configuration errors by combining the configuration test with the restart/reload command in a conditional manner.

Part of PrimeIntellect/Terminal-Lego-15k.