Created
August 26, 2020 23:34
-
-
Save kirevdokimov/86ce6c903bda13b8629d85ce39d2fedc to your computer and use it in GitHub Desktop.
Restart nginx or show error
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
#! /bin/bash | |
if systemctl restart nginx; then | |
echo Ok | |
else | |
systemctl status nginx.service --no-pager --full | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment