This article will introduce you to a script that automatically check the nginx service and restart if the nginx service failed. Everyone knows nginx is a popular web server with incredible power. What all system administrators care about is that if the nginx service is failed in the middle of the night. So what to
How to make a bash script run as a service in Ubuntu 16. This tutorial will guide you to do that. In my blog I have written the same topic for CentOS 7. Ubuntu 16 and CentOS 7 use systemd, you can see the similarity in these two posts. Write your bash script You can
In this article, I will show you how to make the bash script run as a service on CentOS 7 (versions 7.x). Although CentOS 6.x is still supported by 2021 (I remember that). But the use of CentOS 7.x is getting more and more. So, I hope this article will help those who are working
Today I will show you how to make a bash script run as service in CentOS 6 (versions 6.x). Running a bash script as a service is very useful for you in case you want your script to run almost realtime. Most of the time we use scripts that usually combine crontab to execute automatically.