Merge pull request #189 from morphis/f/fix-systemd-user-service

Ensure anbox can be properly started by a systemd --user instance
This commit is contained in:
Simon Fels 2017-04-26 21:20:10 +02:00 committed by GitHub
commit cf56244be6
3 changed files with 7 additions and 2 deletions

View file

@ -2,7 +2,11 @@
Description=Anbox session manager
[Service]
Type=simple
ExecStart=@SNAP_MOUNT_DIR@/anbox session-manager
Restart=always
StartLimitIntervalSec=3
StartLimitBurst=1
[Install]
WantedBy=default.target

2
debian/control vendored
View file

@ -10,7 +10,7 @@ Vcs-Git: https://github.com/anbox/anbox.git
Package: anbox-common
Architecture: all
Depends: ${misc:Depends}
Depends: ${misc:Depends}, dbus-user-session
Description: Common files necessary for Anbox
.
This package contains necessary things which can't be shipped

3
debian/rules vendored
View file

@ -28,8 +28,9 @@ override_dh_install:
install -d $(CURDIR)/debian/tmp/etc/modules-load.d
install -m 0644 kernel/anbox.conf $(CURDIR)/debian/tmp/etc/modules-load.d
install -d $(CURDIR)/debian/tmp/usr/lib/systemd/user/
install -d $(CURDIR)/debian/tmp/usr/lib/systemd/user/default.target.wants
install -m 0644 data/anbox.service $(CURDIR)/debian/tmp/usr/lib/systemd/user/
ln -sf /usr/lib/systemd/user/anbox.service $(CURDIR)/debian/tmp/usr/lib/systemd/user/default.target.wants/anbox.service
install -d $(CURDIR)/debian/tmp/usr/share/upstart/sessions/
install -m 0644 data/anbox.conf $(CURDIR)/debian/tmp/usr/share/upstart/sessions/