Create a Linux Service Monitoring Script - Learn Bash scripting tutorial

Тәжірибелік нұсқаулар және стиль

In this video walkthrough, you will learn how to create a Linux Bash Shell script from scratch to monitor a service and start the service if it is stopped. We will also show how to add the Linux Shell script to a Cron job to automatically run the Bash script at a specified interval.
Subscribe to the channel: / @virtualizationhowto
My blog: www.virtualizationhowto.com
_____________________________________________________
Social Media: / vspinmaster
LinkedIn: / brandon-lee-vht
Github: github.com/brandonleegit
Introduction - 0:00
Overview of the environment and Nginx - 1:10
Overview of the Linux Bash shell script and syntax - 2:00
The next steps after creating the Bash shell script - 4:12
Copying the file over using WinSCP - 4:33
Make the shell script executable - 5:00
Simulating a failure of Nginx - 5:18
Running the Bash shell script to check the status of Nginx and see if it automatically restarts - 5:50
Check the status of Nginx after running the script - 6:25
Add the shell script to a CRON job - 7:05
Explanation of the CRON job syntax - 7:30
Saving the CRON tab file - 8:26
Concluding thoughts and wrapping up - 8:45
Take a look at the detailed blog post of this tutorial here:
www.virtualizationhowto.com/2...
Linux bash
shell scripting
learn bash scripting
monitor Linux service
devops
automating linux
restart a stopped service
monitor a linux service

Пікірлер: 4

  • @GuruTatvaConsultation-ib6fb
    @GuruTatvaConsultation-ib6fb Жыл бұрын

    Really very good teaching and placing the foundation. Thanks

  • @GuruTatvaConsultation-ib6fb
    @GuruTatvaConsultation-ib6fb Жыл бұрын

    Sir, I request you to create complete devops series for a beginner.

  • @um8440
    @um8440 Жыл бұрын

    If i have a crontab job at 1am it should run, but my laptop is turn off, then i turn it on at 2am, will the crontab job run when the laptop is turn on or will it run the next day when the laptop is on?

  • @VirtualizationHowto

    @VirtualizationHowto

    Жыл бұрын

    Certain cron variants will run jobs that are missed, but regular crontab jobs will just run the next scheduled job

Келесі