blaze64

Well-Known Member
Feb 5, 2003
159
0
166
Does anyone know where the command files are that attempt to automatically restart a service that has died? You know the one that sends out the email "Apache failed... an attempt was made to restart the service..."

And part 2 of this question is it safe to modify that file? I need it to kill all processes and then attempt the restart of the downed service. Anyway.. anyone know?

THANKS!
 

asmithjr

Well-Known Member
Jun 13, 2003
516
8
168
type service as root you get
service < option > | --status-all | [ service_name [ command | --full-restart ]]
/sbin/service httpd restart

or one might

/etc/init.d/httpd restart

or something like
/etc/init.d/named restart

hope this helps.
 

Hoss

Active Member
Oct 15, 2002
25
0
151
It should be in this file m8

chkservd

This is also the command you use for stopping & starting that service.
i.e. you want to shut down mysql for maintenance and not have it auto re-start while your working

/etc/init.d/chkservd stop

/etc/init.d/mysql stop


Now whether you want to edit that file or can safely I cannot say?
 

jphilipson

Well-Known Member
Jan 8, 2003
80
0
156
Think ya'll missed the point... the restart config scripts are in /etc/chkserv.d/