This is an old revision of the document!
Check the service if nginx is running and if not start
#!/usr/bin/env bash STATUS="$(systemctl is-active nginx.service)" if [ "${STATUS}" != "active" ]; then systemctl start nginx.service fi