-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
I was running crond with Termux in another phone work very well. I recently switched to a new phone, the battery optimizer may have issues, and causing the crond process killed randomly.
the
psshere is:ps ax | sed 's|/data.*/||'
Note that the crond is killed, but the shell process (pid 2717) is not.
I want to understand how these things happen in the background. Where could I find more clues on how this crond is killed. I've locked this app, and acquired the wake lock. I've set the OS NOT to do any battery optimization on app Termux and Termux-API.
$ termux-info
Application version:
0.110
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# game-repo (sources.list.d/game.list)
deb https://grimler.se/game-packages-24 games stable
# science-repo (sources.list.d/science.list)
deb https://grimler.se/science-packages-24 science stable
Updatable packages:
All packages up to date
Android version:
11
Kernel build information:
Linux localhost 5.4.61-qgki-01148-g376d4ad #1 SMP PREEMPT Sat Apr 17 03:38:45 CST 2021 aarch64 Android
Device manufacturer:
OnePlus
Device model:
LE2110
I've tried v0.108, same issue in this phone. I know the main issue must be due to this phone. But I want to know if there is anything we can do in termux side. (e.g. Does the OS have the ability of killing only one of processes in Termux? etc)