linux - Running "sudo /sbin/service --status-all" restarts a service (Apache) -
i'm looking understand how running command "sudo /sbin/service --status-all" on redhat 6.7 64bit system restart apache?
i've used command list running , stopped services, first time i've seen restart service though. down bad apache config or can issuing command restart services in circumstances?
update:
the status of httpd is stopped:
sudo /etc/rc.d/init.d/httpd status
httpd stopped
sudo /etc/init.d/httpd status
httpd stopped
if run "sudo /sbin/service --status-all" see:
x installed
y running...
x stopped
httpd (pid xxx) running
root xxx 1 0 18:10 ? 00:00:00 /usr/sbin/httpd -f /httpd.conf -k start
Comments
Post a Comment