Last active
August 6, 2022 13:13
-
-
Save tgedikli/7d42fee20e112939c0052bcf2ef5aadc to your computer and use it in GitHub Desktop.
A Bash Script that checks PHP FPM is running, if not start FPM Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
status=$(service php7.4-fpm status | grep running) | |
if [ -z "$status" ] | |
then | |
service php7.4-fpm start | |
else | |
echo "FPM is running" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment