Merge lp:~vicamo/lxc-android-config/add-upstart-local-bridge into lp:lxc-android-config

Proposed by You-Sheng Yang
Status: Merged
Approved by: Łukasz Zemczak
Approved revision: 27
Merged at revision: 26
Proposed branch: lp:~vicamo/lxc-android-config/add-upstart-local-bridge
Merge into: lp:lxc-android-config
Diff against target: 44 lines (+23/-1)
3 files modified
debian/lxc-android-config.service (+2/-1)
lib/systemd/system/force-mtp.service (+10/-0)
lib/systemd/system/upstart-local-bridge.service (+11/-0)
To merge this branch: bzr merge lp:~vicamo/lxc-android-config/add-upstart-local-bridge
Reviewer Review Type Date Requested Status
Łukasz Zemczak Approve
Ubuntu Phablet Team Pending
Review via email: mp+307144@code.launchpad.net

Commit message

Add systemd upstart-local-bridge service

Description of the change

Add systemd upstart-local-bridge service

To post a comment you must log in.
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I wonder if we could somehow make this only run when we know that systemd is in use. I don't have much experience here, but will having this bridge run have any influence on systems that do not use systemd? (like our stable vivid-based touch systems)

review: Needs Information
Revision history for this message
You-Sheng Yang (vicamo) wrote :

That's a systemd service file, so this unit surely only run with systemd. To be clear, there is also a lxc-android-config.upstart file under debian/, so upstart-local-bridge already runs in vivid+upstart as part of the android container stack.

26. By You-Sheng Yang

Add systemd force-mtp.service.

27. By You-Sheng Yang

Install force-mtp.service to multi-user.target as well.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Added missed force-mtp.service. Then eng-build device should automatically start adbd service.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Ah, right, even though we do have systemd installed it's not enabled for those (without systemd-sysv). Somehow I had some wrong impression. +1

review: Approve
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Confirmed landed in 0.230+16.04.20161004-0ubuntu1, rootfs rev 51.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/lxc-android-config.service'
2--- debian/lxc-android-config.service 2015-09-02 07:50:44 +0000
3+++ debian/lxc-android-config.service 2016-10-04 07:15:56 +0000
4@@ -1,7 +1,8 @@
5 [Unit]
6 Description=LXC Android Config and Container Initialization
7 Requires=cgmanager.service
8-After=cgmanager.service
9+Wants=upstart-local-bridge.service
10+After=cgmanager.service upstart-local-bridge.service
11
12 [Service]
13 ExecStartPre=/usr/lib/lxc-android-config/copy-udev-unflipped
14
15=== added file 'lib/systemd/system/force-mtp.service'
16--- lib/systemd/system/force-mtp.service 1970-01-01 00:00:00 +0000
17+++ lib/systemd/system/force-mtp.service 2016-10-04 07:15:56 +0000
18@@ -0,0 +1,10 @@
19+[Unit]
20+Requires=lxc-android-config.service
21+After=lightdm.service lxc-android-config.service
22+
23+[Service]
24+Type=oneshot
25+ExecStart=/usr/bin/android-gadget-service enable mtp
26+
27+[Install]
28+WantedBy=multi-user.target
29
30=== added file 'lib/systemd/system/upstart-local-bridge.service'
31--- lib/systemd/system/upstart-local-bridge.service 1970-01-01 00:00:00 +0000
32+++ lib/systemd/system/upstart-local-bridge.service 2016-10-04 07:15:56 +0000
33@@ -0,0 +1,11 @@
34+[Unit]
35+Description=Bridge client socket name=value pairs into Upstart
36+Before=lxc-android-config.service
37+
38+[Service]
39+Type=forking
40+ExecStartPre=/bin/mkdir -p /dev/socket
41+ExecStart=/sbin/upstart-local-bridge --daemon --event=android-container --path=/dev/socket/upstart-text-bridge
42+
43+[Install]
44+WantedBy=multi-user.target

Subscribers

People subscribed via source and target branches