How can I check whether the nginx -s reload
is success?
When I use the nginx -s reload
to reload my nginx, there is no console in my terminal.
how can I check whether is success?
Use
nginx -s reload && echo "Success" || echo "Failure"
For a more complete explanation on the &&
and ||
usage, have a look at this post.