mirror of
https://github.com/izzy2lost/docker-android.git
synced 2026-06-19 01:16:28 -07:00
Big restructuring by moving to python
This commit is contained in:
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/system/bin/sh
|
||||
setprop persist.sys.usb.config adb
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
function shuwdown(){
|
||||
echo "SIGTERM is received! Clean-up will be executed if needed!"
|
||||
process_id=$(pgrep -f "start device")
|
||||
kill ${process_id}
|
||||
sleep 10
|
||||
if [[ ${DEVICE_TYPE} == "geny_aws" ]]; then
|
||||
# Give time to execute tear_down method
|
||||
sleep 180
|
||||
fi
|
||||
}
|
||||
|
||||
trap shuwdown SIGTERM
|
||||
|
||||
SUPERVISORD_CONFIG_PATH="${APP_PATH}/mixins/configs/process"
|
||||
if [[ ${DEVICE_TYPE} == "geny_"* ]]; then
|
||||
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-base.conf & \
|
||||
wait
|
||||
elif [[ ${EMULATOR_HEADLESS} == true ]]; then
|
||||
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-port.conf & \
|
||||
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-base.conf & \
|
||||
wait
|
||||
else
|
||||
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-screen.conf & \
|
||||
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-port.conf & \
|
||||
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-base.conf & \
|
||||
wait
|
||||
fi
|
||||
Reference in New Issue
Block a user