init: pid of running process should be provided to side-along processes

Bug #556001 reported by Trevor Turk
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
upstart
Triaged
Wishlist
Unassigned
upstart (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: upstart

This is a feature request. I would like to have access to the pid after starting a long running script that does not daemonize. If the pid was put into the env, that would be great.

Here's an example of what I'm doing now in order to get the pid, which is not so much fun:

http://flowcoder.com/170

# lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

# apt-cache policy upstart
upstart:
  Installed: 0.6.3-11

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Agreed, it should be made available in those processes that run alongside. It probably makes sense to include it in the event as well, so you could do:

  on started apache
  script
    .. $APACHE_PID ...
  end script

summary: - Upstart should include pid as an environment variable
+ init: pid of running process should be provided to side-along processes
Changed in upstart (Ubuntu):
status: New → Invalid
Changed in upstart:
status: New → Triaged
importance: Undecided → Wishlist
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.