Đang Thực Hiện

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 > [url removed, login to view])

{

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"

}

Kỹ năng: Linux, Shell Script

Xem thêm: shell script, minute script, cron script, server load log, simple cron job linux, 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, simple shell, simple linux, script runs

Về Bên Thuê:
( 2 nhận xét ) New Delhi, India

Mã Dự Án: #1622948

Đã trao cho:

shakoush2001

Expert scripter see reviews

$30 USD trong 3 ngày
(57 Đánh Giá)
6.5

14 freelancer đang chào giá trung bình $38 cho công việc này

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 trong 0 ngày
(33 Đánh Giá)
5.1
RickMc

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

$35 USD trong 1 ngày
(16 Đánh Giá)
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 trong 1 ngày
(5 Đánh Giá)
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 trong 0 ngày
(6 Đánh Giá)
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 trong 3 ngày
(6 Đánh Giá)
3.0
eostapets

I can write this script

$30 USD trong 1 ngày
(13 Đánh Giá)
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 trong 1 ngày
(2 Đánh Giá)
2.5
sumodirjo

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

$100 USD trong 2 ngày
(2 Đánh Giá)
1.4
codinglover89

lets me work for you.

$60 USD trong 1 ngày
(0 Đánh Giá)
0.0
SoftwareBits

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

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
tianlong1986

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

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
phpfreak1985

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

$30 USD trong 0 ngày
(0 Đánh Giá)
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 trong 2 ngày
(0 Đánh Giá)
0.0