LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Odd question about restarting services on RHEL6 (https://www.linuxquestions.org/questions/red-hat-31/odd-question-about-restarting-services-on-rhel6-4175532377/)

vonedaddy 01-29-2015 06:25 AM

Odd question about restarting services on RHEL6
 
This is an odd question, but it is bothering me.

I have a RHEL 6 server I just installed, and configured DHCP. When I start the dhcpd service I get the following:

[root@nswcpddhcp dhcp]# service dhcpd restart
Shutting down dhcpd: dhcpd
Starting dhcpd: dhcpd


But I expect to see:

[root@nswcpddhcp dhcp]# service dhcpd restart
Shutting down dhcpd: dhcpd [OK]
Starting dhcpd: dhcpd [OK]

It is impossible to know when it fails to restart since it never shows the [FAILED] or [OK] status.

Does anyone have any idea why this is not showing? Just in case it matters, I am logged into the system via ssh.

To be clear, the service is starting and functioning fine. I am just wondering why [OK] is not showing when restarting the service.

TenTenths 01-29-2015 06:39 AM

Quote:

Originally Posted by vonedaddy (Post 5308204)
I am just wondering why [OK] is not showing when restarting the service.

Most likely explanation is that whoever wrote the init.d script didn't bother echoing "[OK]" when it starts.

chrism01 01-30-2015 07:03 AM

Definitely worth reading the script indicated - should be just bash, so you can modify if reqd.
Of course your changes may be wiped on the next update, so keep a backup

savona 01-31-2015 11:48 AM

Change the BOOTUP variable in /etc/sysconfig/init from verbose to color.

# color => new RH6.0 bootup
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color


All times are GMT -5. The time now is 05:22 PM.