We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb857d9 commit a97e7f1Copy full SHA for a97e7f1
common/service.sh
@@ -1,9 +1,13 @@
1
+# set +x
2
+SLEEP_TIME=15
3
+
4
while true; do
- if pgrep com.termux.api > /dev/null; then
5
+ if pgrep com.termux.api 2>&1 > /dev/null; then
6
# echo "com.termux.api is up"
7
+ sleep $SLEEP_TIME
8
else
9
# echo "com.termux.api is down"
- am start -p com.termux.api
10
+ am start -p com.termux.api > /dev/null
11
12
fi
- sleep 15
13
done
module.prop
@@ -3,4 +3,4 @@ name=Magisk Keep Termux API alive
version=0.0.1
versionCode=1
author=333van
-description=A simple Magick module that sets some iptables rules at boot
+description=A simple Magick module that keeps com.termux.api alive
0 commit comments