init: add D-Bus method to lookup by pid

Bug #392500 reported by JohnFlux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
Triaged
Wishlist
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
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

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
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

The accompanying command should probably be something like:

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.