init: add D-Bus method to lookup by pid

Bug #392500 reported by JohnFlux on 2009-06-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
James Hunt

Bug Description

Please add a function like:

  com.ubuntu.Upstart.LookupPid (Int32 pid) => (ObjectPath job, ObjectPath instance, String process)

To take a pid and return the job and instance of that process. This would be really nice for a task manager type program that shows the available running PIDs and wants to provide upstart options for the services.

Tags: pid Edit Tag help

The call convention is what I suggested on IRC

Changed in upstart:
importance: Undecided → Wishlist
status: New → Triaged
summary: - Add dbus LookupPid call
+ init: add D-Bus method to lookup by pid

The accompanying command should probably be something like:

  # initctl status -p 1234
  dbus start/running, process 1234

James Hunt (jamesodhunt) on 2011-08-03
Changed in upstart:
assignee: nobody → James Hunt (jamesodhunt)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers