Merge lp:~serge-hallyn/ubuntu/quantal/pulseaudio/pa-upstart into lp:ubuntu/quantal/pulseaudio

Proposed by Serge Hallyn
Status: Merged
Merged at revision: 175
Proposed branch: lp:~serge-hallyn/ubuntu/quantal/pulseaudio/pa-upstart
Merge into: lp:ubuntu/quantal/pulseaudio
Diff against target: 104 lines (+37/-35)
3 files modified
debian/changelog (+13/-0)
debian/pulseaudio.default (+1/-22)
debian/pulseaudio.upstart (+23/-13)
To merge this branch: bzr merge lp:~serge-hallyn/ubuntu/quantal/pulseaudio/pa-upstart
Reviewer Review Type Date Requested Status
Serge Hallyn (community) Disapprove
Ubuntu branches Pending
Review via email: mp+112650@code.launchpad.net

Description of the change

This is an update of the following review:

https://code.launchpad.net/~serge-hallyn/ubuntu/precise/pulseaudio/pa-upstart/+merge/95664

which in turn was an update of

update of https://code.launchpad.net/~pali/ubuntu/precise/pulseaudio/pulseaudio/+merge/92622 to include a changelog entry.

Previous review comments have been addressed, thanks for your input.

To post a comment you must log in.
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

The upstartification has been merged. This branch is obsolete.

review: Disapprove
175. By Serge Hallyn

* deprecate pulseaudio.default. Move it's helpful comments into the upstart
  script.
* pulseaudio.upstart:
  - replace mkdir/chmod/chown by install
  - remove PULSEAUDIO_SYSTEM_START=0, and instead comment out the 'start on'
    with a comment explaining how to re-enable
  - remove started udev from start on - it's redundant with runlevel 2, and
    would fail in the case of switching to runlevel 1 and back to 2.

176. By Serge Hallyn

don't gratuitously use a 'script' section just to do one exec.

177. By Serge Hallyn

per SpamapS, make pre-start a one-liner exec.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-06-08 15:51:39 +0000
3+++ debian/changelog 2012-07-20 21:41:20 +0000
4@@ -1,3 +1,16 @@
5+pulseaudio (1:2.0-0ubuntu2) quantal; urgency=low
6+
7+ * deprecate pulseaudio.default. Move it's helpful comments into the upstart
8+ script.
9+ * pulseaudio.upstart:
10+ - replace mkdir/chmod/chown by install
11+ - remove PULSEAUDIO_SYSTEM_START=0, and instead comment out the 'start on'
12+ with a comment explaining how to re-enable
13+ - remove started udev from start on - it's redundant with runlevel 2, and
14+ would fail in the case of switching to runlevel 1 and back to 2.
15+
16+ -- Serge Hallyn <serge.hallyn@ubuntu.com> Fri, 20 Jul 2012 12:30:47 -0500
17+
18 pulseaudio (1:2.0-0ubuntu1) quantal; urgency=low
19
20 [ Luke Yelavich ]
21
22=== modified file 'debian/pulseaudio.default'
23--- debian/pulseaudio.default 2011-05-27 14:05:01 +0000
24+++ debian/pulseaudio.default 2012-07-20 21:41:20 +0000
25@@ -1,22 +1,1 @@
26-# Start the PulseAudio sound server in system mode.
27-# (enables the pulseaudio init script - requires that users be in the
28-# pulse-access group)
29-# System mode is not the recommended way to run PulseAudio as it has some
30-# limitations (such as no shared memory access) and could potentially allow
31-# users to disconnect or redirect each others' audio streams. The
32-# recommended way to run PulseAudio is as a per-session daemon. For GNOME/KDE/
33-# Xfce sessions in Ubuntu Lucid/10.04, /etc/xdg/autostart/pulseaudio.desktop
34-# handles this function of automatically starting PulseAudio on login, and for
35-# it to work correctly your user must *not* have "autospawn = no" set in
36-# ~/.pulse/client.conf (or in /etc/pulse/client.conf). By default, autospawn
37-# is enabled. For other sessions, you can simply start PulseAudio with
38-# "pulseaudio --daemonize".
39-# 0 = don't start in system mode, 1 = start in system mode
40-PULSEAUDIO_SYSTEM_START=0
41-
42-# Prevent users from dynamically loading modules into the PulseAudio sound
43-# server. Dynamic module loading enhances the flexibility of the PulseAudio
44-# system, but may pose a security risk.
45-# 0 = no, 1 = yes
46-DISALLOW_MODULE_LOADING=1
47-
48+# This file is deprecated please edit /etc/init/pulseaudio.conf
49
50=== modified file 'debian/pulseaudio.upstart'
51--- debian/pulseaudio.upstart 2012-06-08 15:51:39 +0000
52+++ debian/pulseaudio.upstart 2012-07-20 21:41:20 +0000
53@@ -3,28 +3,38 @@
54 description "System PulseAudio sound server"
55 author "Pali Rohár <pali.rohar@gmail.com>"
56
57-start on (started udev and runlevel [2345])
58+# uncomment the 'start on' to start pulseaudio in system mode
59+# (enables the pulseaudio init script - requires that users be in the
60+# pulse-access group)
61+# System mode is not the recommended way to run PulseAudio as it has some
62+# limitations (such as no shared memory access) and could potentially allow
63+# users to disconnect or redirect each others' audio streams. The
64+# recommended way to run PulseAudio is as a per-session daemon. For GNOME/KDE/
65+# Xfce sessions in Ubuntu Lucid/10.04, /etc/xdg/autostart/pulseaudio.desktop
66+# handles this function of automatically starting PulseAudio on login, and for
67+# it to work correctly your user must *not* have "autospawn = no" set in
68+# ~/.pulse/client.conf (or in /etc/pulse/client.conf). By default, autospawn
69+# is enabled. For other sessions, you can simply start PulseAudio with
70+# "pulseaudio --daemonize".
71+
72+#start on runlevel [2345]
73 stop on runlevel [016]
74
75 expect daemon
76 respawn
77
78-env PULSEAUDIO_SYSTEM_START=0
79+# Prevent users from dynamically loading modules into the PulseAudio sound
80+# server. Dynamic module loading enhances the flexibility of the PulseAudio
81+# system, but may pose a security risk.
82+# 0 = no, 1 = yes
83 env DISALLOW_MODULE_LOADING=1
84+
85+# extra arguments to pass to the daemon
86 env PULSEAUDIO_ARGS=
87
88-pre-start script
89- [ -r /etc/default/pulseaudio ] && . /etc/default/pulseaudio
90- [ "$PULSEAUDIO_SYSTEM_START" != "1" ] && { stop; exit 0; }
91- mkdir -p /var/run/pulse
92- chown pulse:pulse /var/run/pulse
93- chmod 755 /var/run/pulse
94-end script
95+pre-start exec install -d -m755 -o pulse -g pulse /run/pulse
96
97-script
98- [ -r /etc/default/pulseaudio ] && . /etc/default/pulseaudio
99- exec /usr/bin/pulseaudio --system --daemonize --high-priority --log-target=syslog --disallow-exit --disallow-module-loading=$DISALLOW_MODULE_LOADING $PULSEAUDIO_ARGS
100-end script
101+exec /usr/bin/pulseaudio --system --daemonize --high-priority --log-target=syslog --disallow-exit --disallow-module-loading=$DISALLOW_MODULE_LOADING $PULSEAUDIO_ARGS
102
103 post-start script
104 if [ -e /var/run/pulse/.esd_auth ]; then

Subscribers

People subscribed via source and target branches

to all changes: