Why does service service_name status give different responses for different services?

Posted by Code Ghar on Ask Ubuntu See other posts from Ask Ubuntu or by Code Ghar
Published on 2012-10-17T20:06:48Z Indexed on 2012/10/17 23:20 UTC
Read the original article Hit count: 151

Filed under:
|

Running the "service service_name status" command gives three different types of output when three different service_names are used. I tried with atftpd, apache2, and isc-dhcp-server, as shown below.

user@host:~$ service atftpd status
Usage: /etc/init.d/atftpd {start|stop|restart|reload|force-reload}
user@host:~$ service apache2 status
Apache2 is running (pid 1103).
user@host:~$ service isc-dhcp-server status
isc-dhcp-server start/running, process 5696

Could this be because atftpd has not been converted to Upstart?

The status for isc-dhcp-server shows "start/running" which indicates it has been converted to use Upstart. I would've thought apache2 would have been converted to Upstart already. If it has then why does it not display "start/running"?

© Ask Ubuntu or respective owner

Related posts about Services

Related posts about upstart