How To Use a Bash Script To Restart Linux Server Services

Use a script to restart critical Linux services such as the web or database server. Restart nginx, apache2, MySQL or PHP-fpm automatically.