Skip to content

Instantly share code, notes, and snippets.

@yoander
Last active February 22, 2019 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yoander/a7fd18c05475a1f04253b9f74db3c96b to your computer and use it in GitHub Desktop.
Save yoander/a7fd18c05475a1f04253b9f74db3c96b to your computer and use it in GitHub Desktop.
Script to stop Apache server on Android (Termux)
#
# 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