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:
commit
cf56244be6
3 changed files with 7 additions and 2 deletions
|
|
@ -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
2
debian/control
vendored
|
|
@ -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
3
debian/rules
vendored
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue