Search code examples
linuxserviceupstart

If I started a service with "sudo start service_name" how do I check (later) if it's running?


I've started an upstart service using the command sudo start myservice. I want a way so that later, I (or anyone) can check if the service is up and running. What would the command be to check that?


Solution

  • Found the answer:

    sudo initctl list | grep servicename