]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
waydroid: Add upstart service
authorErfan Abdi <erfangplus@gmail.com>
Thu, 9 Sep 2021 15:01:43 +0000 (19:31 +0430)
committerErfan Abdi <erfangplus@gmail.com>
Thu, 9 Sep 2021 15:01:43 +0000 (19:31 +0430)
debian/waydroid.install
waydroid-container.conf [new file with mode: 0644]

index c15d09eb55406d92a1077eff0b533e58a6d66566..29967ff4a830c4398bc6392955ca81593ce0a2ae 100644 (file)
@@ -2,3 +2,4 @@ waydroid.py /usr/lib/waydroid
 tools /usr/lib/waydroid
 data /usr/lib/waydroid
 gbinder/anbox.conf /etc/gbinder.d
 tools /usr/lib/waydroid
 data /usr/lib/waydroid
 gbinder/anbox.conf /etc/gbinder.d
+waydroid-container.conf etc/init
diff --git a/waydroid-container.conf b/waydroid-container.conf
new file mode 100644 (file)
index 0000000..c185edc
--- /dev/null
@@ -0,0 +1,17 @@
+description "Waydroid container"
+
+start on started lightdm
+
+kill timeout 120
+respawn
+respawn limit unlimited
+
+pre-stop script
+  waydroid container stop
+end script
+
+post-stop script
+  waydroid session stop
+end script
+
+exec waydroid container start