General restart OK notices gone for Apache?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
12,560
Location
Maastricht
On Centos 5 an 6 previously when restarting for example apache, it was shown like this:
Code:
Restarting apache.
 Stopping httpd: 	[ OK ]
 Starting httpd: 	[ OK ]

But nowadays on my Centos 6 servers, this is not seen anymore. Even stronger, nothing is shown. Only the command like this:
Code:
[root@server18: ~]# service httpd restart  
[root@server18: ~]# /etc/init.d/httpd restart
[root@server18: ~]#

Dovecot does not have that issue and is still giving the OK notices.

Exim is not giving OK notices, but at least is telling that it's getting restarted like this:
Code:
[root@server18: ~]# /etc/init.d/exim restart
Shutting down exim: 
Starting exim:

Is there a way to get those OK (or Failed) notices back so they're shown again when restarting apache? An how is this done?
 
Hello Richard,

It's scripted in /etc/init.d/httpd and /etc/init.d/exim

You can update the files for your needs.

I don't need it for my own so it's up to you to update them, or probably somebody else can guide you trough it.
 
Hello Alex.

Thank you. Odd they are taken out. Was that done by DA or by Apache?
I hope somebody can guide me through or I will try to see how it's done in Dovecot.
 
Init files are maintained by Directadmin as far as I know.

What I noticed, you can try:

Code:
service httpd stop
service httpd start

instead of

Code:
service httpd restart

to see those messages.

Probably it will work the same for other services.
 
Thank you Aliex, but I will edit the scripts then, because on Dovecot it works fine and I just like to see when things restart (like after an update) it all goes well.
 
Back
Top