Last active
February 22, 2019 09:20
-
-
Save yoander/a7fd18c05475a1f04253b9f74db3c96b to your computer and use it in GitHub Desktop.
Script to stop Apache server on Android (Termux)
This file contains hidden or 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