Script to stop Apache server on Android (Termux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This script is part of the video, | |
# Cómo instalar Apache Web Server en Android: https://youtu.be/cwp63pJMy_A and | |
# it's intended to be used on Termux Android 32 bits in order to fix the issue, | |
# https://github.com/termux/termux-packages/issues/1727 | |
# Before executing this script you must install termux-chroot see de video, | |
# Cómo hacer chroot en Termux: https://youtu.be/gdy12S94BBk | |
# | |
#!/usr/bin/env bash | |
aps=$(pidof httpd) | |
pidf=/var/run/apache2/httpd.pid | |
[[ -f $pidf ]] && rm -f $pidf | |
[[ "$aps" != "" ]] && kill -9 $aps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment