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

Reported by Trevor Turk on 2010-04-05
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
upstart
Wishlist
Unassigned
upstart (Ubuntu)
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

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  Edit
Everyone can see this information.

Other bug subscribers