Skip to content

This shell program will check the status of the given service as the commandline arguments. If a particular service is not up then It will bring up by the checksrv.sh program.

Notifications You must be signed in to change notification settings

stefanzib/Service-Start-Linux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

=======================================================================	+
Author ::krishees@gmail.com						+
Features,								+
Check the status of the given services (as a command line argument) 	+
and if that particular service is in down status./checksrv.sh <service> +	
program can turn up the particular service.				+
=======================================================================	+
pattern->								+
./checksrv.sh <service-1> <service-2>.....<service-n>			+
ex-> for httpd and mysqld						+
./checksrv.sh httpd mysqld						+
=======================================================================	+
Usage->									+
Using crontab (crontab -e)						+	
* * * * *  ./checksrv.sh <service> 					+
Check the status of the service every 60 seconds and if the particular 	+
service not up then the ./checksrv.sh will bring up the particular 	+ 
services 									+
------------------------------------------------------------------------+
Using inittab	(/etc/inittab)						+
Check the status of a service after particular run-level reset. After 	+
particular run-level change and if particular service is not up then    +
 ./checksrv.sh will bring up  the particular services 			+
=======================================================================	+

About

This shell program will check the status of the given service as the commandline arguments. If a particular service is not up then It will bring up by the checksrv.sh program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%