Skip to content

Service Up - A script to keep services running. Red Hat 7 / Centos 7 / Fedora 7.

License

Notifications You must be signed in to change notification settings

luoldrigues/sup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SUP (Service Up)

This is a script which check a service status to make sure that it is running. If the service is off, this script will start it to keep the service running.

WARNING: You have to execute this application as root or another user which is allowed to execute commands to manage services, such as systemctl.

Installation

$ sudo su -
$ cd /tmp/
$ wget https://github.com/luoldrigues/sup/archive/master.zip
$ unzip master.zip; cd sup-master
$ mv sup /usr/local/bin
$ sup --help

Help

$ sup --help
Usage: sup {COMMAND} <SERVICE> [OPTIONS...]

COMMAND:
  keepup           Try to KEEP the service UP

OPTIONS:
  -h, --help       Show this help
  -v, --verbose    Verbosely list processed
      --usage      Give a short usage message
      --version    Print program version

Examples:
   sup keepup httpd --verbose
   sup keepup mariadb -v
   sup keepup firewalld -v
   sup --help

You might use this program in your crontab
Cron example:
  */15 * * * * /usr/local/bin/sup mariadb keepup
  The line above execute every 15 minutes to check the MariaDB service
  For more details see 'man crontab'

Usage

$ sup --usage
Usage: sup {keepup} <SERVICE> [--help] [--verbose] [--usage] [--version]

Examples:
   sup keepup httpd --verbose
   sup keepup mariadb -v
   sup keepup firewalld
   sup --help

Version

$ sup --version
sup version 0.2
GNU License <http://gnu.org/licenses/gpl.html>.
This is a free software! You are allowed to change and redistribute it for free.
Written by Luan Rodrigues - https://github.com/luoldrigues/sup

Compatible

  • Red Hat 7
  • Centos 7
  • Fedora 7

About

Service Up - A script to keep services running. Red Hat 7 / Centos 7 / Fedora 7.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages