Merge lp:~serge-hallyn/ubuntu/precise/pulseaudio/pa-upstart into lp:ubuntu/precise/pulseaudio
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~serge-hallyn/ubuntu/precise/pulseaudio/pa-upstart |
| Merge into: | lp:ubuntu/precise/pulseaudio |
| Diff against target: |
57 lines (+45/-0) 2 files modified
debian/changelog (+7/-0) debian/pulseaudio.upstart (+38/-0) |
| To merge this branch: | bzr merge lp:~serge-hallyn/ubuntu/precise/pulseaudio/pa-upstart |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Clint Byrum | Needs Fixing on 2012-03-30 | ||
| Chris Halse Rogers | Needs Information on 2012-03-16 | ||
| Ubuntu branches | 2012-03-02 | Pending | |
|
Review via email:
|
|||
Description of the Change
This is an update of https:/
| Serge Hallyn (serge-hallyn) wrote : | # |
Thanks. I don't think it's urgent, it was simply a continuation of https:/
| Clint Byrum (clint-fewbar) wrote : | # |
Other feedback:
* This should probably use /run, not /var/run. I believe once we are in Q we should be able to do so without a versioned depends on sysvinit.
* mkdir, chown, chmod, can all be supplanted by install:
install -d -m755 -o pulse -g -pulse /run/pulse
Its part of coreutils and will always be available in runlevel 2.
* start on started udev and runlevel [2345] is wrong
as pulseaudio will be stopped, but not started again on a move from runlevel 1 to 2.
I recommend instead just using start on runlevel [2345], and then to make sure there is no race with udev (which starts so early, its pretty unlikely anyway), use wait-for-state in the pre-start:
start wait-for-state WAIT_FOR=udev WAITER=pulseaudio
| Steve Langasek (vorlon) wrote : | # |
> This should probably use /run, not /var/run.
/run requires a versioned dependency on initscripts, and is not worth doing for this cycle for anything that doesn't have to start in early boot.
> I recommend instead just using start on runlevel [2345], and then to
> make sure there is no race with udev (which starts so early, its
> pretty unlikely anyway)
There's no race here; we don't enter runlevel 2 until the network has had a chance to come up, and that doesn't happen until udev triggers it.
Unmerged revisions
- 169. By Serge Hallyn on 2012-03-02
-
[ Pali Rohár ]
Convert System V pulseaudio init script to upstart


Is this change fixing a bug? We're quite a while past Feature Freeze, and unless it's likely to fix a bug, converting to an upstart job doesn't seem to be a valuable upload at this point in time.
If not, we could defer this to Q. Apart from the timing, it looks right.