En cours

Simple shell script that starts/stops httpd based on load

Hello, I have a dedicated server (linux).

I want a simple script lie this:

--cron job that runs every minute--

if(current_load_avg > 50.00)

{

if(httpd is not running)

{

do_nothing

}

else

{

stop httpd

make an entry in log like "Stopping httpd because load is $xyz"

}

}

else if (httpd is not running)

{

start httpd

make an entry in log like "Starting httpd because load is $xyz"

}

Compétences : Linux, Script Shell

Voir plus : httpd, in linux shell script, shell script, minute script, cron script, server load log, simple cron job linux, stopping httpd, script load, stopping, script simple, linux script log, simple job log, script minute, cron job server, linux simple shell, simple shell linux, shell linux, simple shell script, shell script linux, linux shell, linux shell script, simple php shell script, simple ubuntu shell script, simple linux shell

Concernant l'employeur :
( 2 commentaires ) New Delhi, India

N° du projet : #1622948

Décerné à :

shakoush2001

Expert scripter see reviews

30 $ USD en 3 jours
(57 Commentaires)
6.5

14 freelance ont fait une offre moyenne de 38 $ pour ce travail

kram3r

Hello, i have extensive experience in system administration. Can i perform this task and give guarantees of my work. Please check your private box for more informations.

30 $ USD en 0 jours
(33 Commentaires)
5.1
RickMc

I can help you with your script. Thanks! -Rick Mc

35 $ USD en 1 jour
(16 Commentaires)
4.2
evencodethun

Hi, I this is exactly my expertise. I have written 1000's of lines of shell code on Linux systems. I specialized in load balancing and web server performance.

30 $ USD en 1 jour
(5 Commentaires)
3.4
arthurpalves

Good evening! I'm a Linux SysAdmin with a strong experience in shell scripting. Please, check your PMB for more information.

30 $ USD en 0 jours
(6 Commentaires)
3.3
sureshv120

Sir/Maam,I have completed a total of 12 projects with a 100% completion rate and my avg rating is 5 out of 5. I will get the work done for you with the higest quality.

30 $ USD en 3 jours
(6 Commentaires)
3.0
eostapets

I can write this script

30 $ USD en 1 jour
(13 Commentaires)
2.9
abbasitech

Hi there, can do it for you. Check out my reviews and experties to evaluate me. That's it Straight and Forward. Thanks and Regards, ABBASITECH (IT SOLUTIONZ ISB)

30 $ USD en 1 jour
(2 Commentaires)
2.5
sumodirjo

Hi, I'm an experienced linux system administrator also hold RHCE and have experience with scripting.

100 $ USD en 2 jours
(2 Commentaires)
1.4
codinglover89

lets me work for you.

60 $ USD en 1 jour
(0 Commentaires)
0.0
SoftwareBits

Can be done easily. Pick me, pick me :)

30 $ USD en 1 jour
(0 Commentaires)
0.0
tianlong1986

It's easy ,I am very happy to serve you.

30 $ USD en 1 jour
(0 Commentaires)
0.0
phpfreak1985

HI there, this is Gah, i am freelancer, please see your PM Box for further clearifications

30 $ USD en 0 jours
(0 Commentaires)
0.0
codingJon

This should be a quick job. It's easy to determine if a process is running, and uptime gives the current load average.

30 $ USD en 2 jours
(0 Commentaires)
0.0