Merge lp:~pitti/powerd/systemd-unit into lp:powerd

Proposed by Martin Pitt
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 149
Merged at revision: 151
Proposed branch: lp:~pitti/powerd/systemd-unit
Merge into: lp:powerd
Diff against target: 44 lines (+17/-1)
3 files modified
debian/control (+1/-0)
debian/powerd.service (+15/-0)
debian/rules (+1/-1)
To merge this branch: bzr merge lp:~pitti/powerd/systemd-unit
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+246715@code.launchpad.net

Commit message

Add systemd unit.

Description of the change

Straightforward systemd unit corresponding to upstart job.

This depends on a systemd unit for the Android container startup, which landed
in https://launchpad.net/ubuntu/+source/lxc-android-config/0.214.

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

looks good to me! Good work.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-10-31 09:45:03 +0000
3+++ debian/control 2015-01-16 14:36:57 +0000
4@@ -3,6 +3,7 @@
5 Section: admin
6 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
7 Build-Depends: debhelper (>= 9),
8+ dh-systemd,
9 cmake,
10 libglib2.0-dev,
11 android-headers (>= 4.2.2),
12
13=== added file 'debian/powerd.service'
14--- debian/powerd.service 1970-01-01 00:00:00 +0000
15+++ debian/powerd.service 2015-01-16 14:36:57 +0000
16@@ -0,0 +1,15 @@
17+[Unit]
18+Description=monitor and control system power state
19+Requires=lxc-android-config.service
20+After=lxc-android-config.service
21+
22+[Service]
23+Type=dbus
24+BusName=com.canonical.powerd
25+Environment="ANDROID_ROOT=/system"
26+#uncomment the line below to enable debugging
27+#Environment=POWERD_DEBUG=1
28+ExecStart=/usr/bin/powerd
29+
30+[Install]
31+WantedBy=multi-user.target
32
33=== modified file 'debian/rules'
34--- debian/rules 2013-06-04 06:19:10 +0000
35+++ debian/rules 2015-01-16 14:36:57 +0000
36@@ -6,7 +6,7 @@
37 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
38
39 %:
40- dh $@
41+ dh $@ --with systemd
42
43 override_dh_install:
44 dh_install --fail-missing

Subscribers

People subscribed via source and target branches