2

In sys-v-init, to query a service's status you can use the service command and do a service $NAME_OF_SERVICE status.

In systemd, how do you query a service's status?

1
  • On some systems you can still use service but systemctl is the safe bet. Commented Aug 5, 2015 at 13:52

1 Answer 1

0

To query the status of a service in systemd you can do:

systemctl status $NAME_OF_SERVICE

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .