Reduce wait time for shutdown - it is never clean anyway even if you wait the full 120 seconds
This commit is contained in:
parent
823e60ff90
commit
aed61d35d8
2 changed files with 2 additions and 2 deletions
2
debian/lxc-android.service
vendored
2
debian/lxc-android.service
vendored
|
|
@ -14,7 +14,7 @@ NotifyAccess=exec
|
||||||
ExecStartPre=/usr/bin/lxc-start -n android -d
|
ExecStartPre=/usr/bin/lxc-start -n android -d
|
||||||
ExecStart=/usr/lib/lxc-android/lxc-android-notify
|
ExecStart=/usr/lib/lxc-android/lxc-android-notify
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
TimeoutStopSec=120s
|
TimeoutStopSec=30s
|
||||||
ExecStop=/usr/lib/lxc-android/lxc-android-stop
|
ExecStop=/usr/lib/lxc-android/lxc-android-stop
|
||||||
Delegate=yes
|
Delegate=yes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
/usr/bin/setprop sys.powerctl shutdown
|
/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
|
# Teardown mapped super partition
|
||||||
if [ -e "/dev/disk/by-partlabel/super" ]; then
|
if [ -e "/dev/disk/by-partlabel/super" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue