Merge lp:~clint-fewbar/ubuntu/precise/zookeeper/drop-daemon-dep into lp:ubuntu/precise/zookeeper

Proposed by Clint Byrum on 2012-01-19
Status: Merged
Merge reported by: James Page
Merged at revision: not available
Proposed branch: lp:~clint-fewbar/ubuntu/precise/zookeeper/drop-daemon-dep
Merge into: lp:ubuntu/precise/zookeeper
Diff against target: 51 lines (+14/-4)
4 files modified
debian/changelog (+9/-0)
debian/control (+2/-1)
debian/ubuntu_control_vars (+1/-1)
debian/zookeeperd.upstart.in (+2/-2)
To merge this branch: bzr merge lp:~clint-fewbar/ubuntu/precise/zookeeper/drop-daemon-dep
Reviewer Review Type Date Requested Status
James Page 2012-01-19 Approve on 2012-01-23
Review via email: mp+89284@code.launchpad.net

Description of the Change

Uses start-stop-daemon to chuser so daemon is not needed

To post a comment you must log in.
James Page (james-page) wrote :

Hi Clint

I made a few amends to this MP and uploaded (post testing)

1) I added the --name zookeeper flag to the use of start-stop-daemon in the upstart configuration; as it stood any java process running would block the startup of zookeeper - as a process called zookeeper is never likely to exist start-stop-daemon will always try to start the process!

2) I dropped the control variables generation piece completely as its no longer required.

Thanks for showing the way on using start-stop-daemon with Java and upstart

Cheers

James

review: Approve

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 2011-12-01 15:03:53 +0000
3+++ debian/changelog 2012-01-19 16:21:15 +0000
4@@ -1,3 +1,12 @@
5+zookeeper (3.3.4+dfsg1-1ubuntu1) UNRELEASED; urgency=low
6+
7+ * - d/zookeeperd.upstart.in: Change to use start-stop-daemon instead
8+ of daemon.
9+ - d/ubuntu_control_vars: remove daemon dependency
10+
11+
12+ -- Clint Byrum <clint@fewbar.com> Mon, 09 Jan 2012 16:48:15 +0100
13+
14 zookeeper (3.3.4+dfsg1-1) unstable; urgency=low
15
16 [ James Page ]
17
18=== modified file 'debian/control'
19--- debian/control 2011-12-01 15:03:53 +0000
20+++ debian/control 2012-01-19 16:21:15 +0000
21@@ -1,7 +1,8 @@
22 Source: zookeeper
23 Section: java
24 Priority: optional
25-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
26+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
27+XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
28 Uploaders: James Page <james.page@ubuntu.com>
29 Homepage: http://hadoop.apache.org/zookeeper
30 Vcs-Browser: http://git.debian.org/?p=pkg-java/zookeeper.git
31
32=== modified file 'debian/ubuntu_control_vars'
33--- debian/ubuntu_control_vars 2011-12-01 15:03:53 +0000
34+++ debian/ubuntu_control_vars 2012-01-19 16:21:15 +0000
35@@ -1,1 +1,1 @@
36-zookeeperd-deps= daemon
37+zookeeperd-deps=
38
39=== modified file 'debian/zookeeperd.upstart.in'
40--- debian/zookeeperd.upstart.in 2011-12-01 15:03:53 +0000
41+++ debian/zookeeperd.upstart.in 2012-01-19 16:21:15 +0000
42@@ -21,7 +21,7 @@
43 if [ -z "$JMXDISABLE" ]; then
44 JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=$JMXLOCALONLY"
45 fi
46- exec daemon --name=zookeeper --inherit --user=$USER \
47- -- $JAVA -cp $CLASSPATH $JAVA_OPTS -Dzookeeper.log.dir=${ZOO_LOG_DIR} \
48+ exec start-stop-daemon --start -c $USER --exec $JAVA \
49+ -- -cp $CLASSPATH $JAVA_OPTS -Dzookeeper.log.dir=${ZOO_LOG_DIR} \
50 -Dzookeeper.root.logger=${ZOO_LOG4J_PROP} $ZOOMAIN $ZOOCFG
51 end script

Subscribers

People subscribed via source and target branches

to all changes: