10

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some like 'nova-api' do not show up in service --status-all. How do I get the complete list in one go.

Akilesh
  • 233
  • 1
  • 3
  • 8
  • 3
    thanks. but my quest is still incomplete. the answer says services managed by upstart appear with ? in service --status-all but they don't. I've checked. – Akilesh Jan 22 '15 at 07:04
  • 1
  • 1
    @Fabby You have given me the same like from first comment again. – Akilesh Jan 25 '15 at 08:25
  • 1
    service --status-all [ + ] acpid [ - ] anacron [ - ] apparmor [ ? ] apport [ + ] avahi-daemon [ ? ] binfmt-support is what I get... What is your output for the first 6 lines??? – Fabby Jan 25 '15 at 09:16
  • Alright I'll edit my post with more information on what I am looking for. – Akilesh Jan 25 '15 at 16:04
  • Adding more information. I am working on openstack and I can see that none of my openstack services(nova-api, nova-compute, neutron-server etc) show up in service --status-all. not even with a '?'. They all show up in initctl list. I want to know why this is happenning. My intentions are only to understand the system better, because I am planning on writing an upstart service myself and want to do it the correct way. – Akilesh Jan 25 '15 at 16:14

1 Answers1

0

You can use too:

systemctl list-units --type=service

or

systemctl list-unit-files --type=service

or

service --status-all

Maybe this link can help you : service vs. initctl

koalatree
  • 111