Reduce wait time for shutdown - it is never clean anyway even if you wait the full 120 seconds

This commit is contained in:
Adam Boardman 2023-04-23 10:17:09 +01:00
parent 823e60ff90
commit aed61d35d8
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ NotifyAccess=exec
ExecStartPre=/usr/bin/lxc-start -n android -d
ExecStart=/usr/lib/lxc-android/lxc-android-notify
KillMode=mixed
TimeoutStopSec=120s
TimeoutStopSec=30s
ExecStop=/usr/lib/lxc-android/lxc-android-stop
Delegate=yes

View file

@ -1,7 +1,7 @@
#!/bin/sh
/usr/bin/setprop sys.powerctl shutdown
lxc-wait -n android -s "STOPPED" -t 30
lxc-wait -n android -s "STOPPED" -t 20
# Teardown mapped super partition
if [ -e "/dev/disk/by-partlabel/super" ]; then