detect server stop spigot code example
Example 1: how to stop a web server linux
# how to stop a web server linux
sudo service apache2 stop
Example 2: stop nginx server
sudo systemctl stop nginx
# how to stop a web server linux
sudo service apache2 stop
sudo systemctl stop nginx