Cron Jobs for restart services

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
31
473
Go on, have a guess
Have a look in the script file:

/usr/sbin/chkservd

Looks like it runs every 500 seconds. You could modify the script to run more/less frequently, but the script will probably be overwritten every time you upgrade cPanel.
 

markhard

Well-Known Member
Apr 22, 2004
252
0
166
if i want to run chkservd every 5 minute which part of the script i should edit?

is it "sleep(500);" on line 107 ?

thank you
 
Last edited:

SarcNBit

Well-Known Member
Oct 14, 2003
1,010
3
168
chirpy said:
Well, it's actually 8 min and 33.33 sec and could make all the difference :p
/me thinks chirpy needs to check his math :p

It is 8.33 minutes, but it is still 8 minutes and 20 seconds. 20 seconds = .3333 minutes ;)

Damn base 60!
 

PWSowner

Well-Known Member
Nov 10, 2001
2,948
4
343
ON, Canada
chirpy said:
Well, it's actually 8 min and 33.33 sec and could make all the difference :p
When I read this one, I started thinking, "I am getting old", but then I recalculated, then read the next reply.

I guess I'm not that old yet. ;)


SarcNBit said:
Damn base 60!
Yeah, when are they going to measure time in metric units? :D
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,010
3
168
chirpy said:
Oh. Yeah. Oops. Long day. Now, where's that edit post button :eek:
BTDT <- Been there done that!

Squirrel and I have you held hostage now with quotes. I am sure we can make the whole thing disappear for the right price. :cool: ;)
 

markhard

Well-Known Member
Apr 22, 2004
252
0
166
squirrel said:
That's what you would change, but it will be overwritten with updates, plus, 500 seconds is 8 min and 20 sec, which isn't much longer than 5 minutes, so why change it.
some times cpsrvd failed when user login to cpanel, and of course waiting for 5 minutes is better than waiting 8 minutes before cpsrvd restared by chkservd :rolleyes:

thanks for the answer :)