8000 GitHub - jinjie/check-services: Simple bash script to check for services that you expect to be active but is not and attempts to start it.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simple bash script to check for services that you expect to be active but is not and attempts to start it.

Notifications You must be signed in to change notification settings

jinjie/check-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Welcome to check-services 👋

Twitter: jinjie

Simple bash script to check for services that is not active and attempts to start it.

Inspired from http://www.akamaras.com/linux/linux-script-to-check-if-a-service-is-running-and-start-it-if-its-stopped/

Install

cd my-script-directory/
curl https://raw.githubusercontent.com/jinjie/check-services/master/check-services.sh -o check-services.sh
chmod +x check-services.sh

Usage

  • Edit check check-services.sh and use your own configuration.
  • Add cron to run script periodically. Make sure the user running the cron have permission to start services.
# Cron example

MAILTO=""
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin

* * * * * root /root/check-services/check-services.sh

Author

👤 Kong Jin Jie

🤝 Contributing

This is a quick fix for making sure of the services is running on my server. Do feel free to improve.

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Simple bash script to check for services that you expect to be active but is not and attempts to start it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0