Skip to content

Instantly share code, notes, and snippets.

@perfectfoolish
Created February 18, 2016 03:54
Show Gist options
  • Save perfectfoolish/789753f02ca663ab38f1 to your computer and use it in GitHub Desktop.
Save perfectfoolish/789753f02ca663ab38f1 to your computer and use it in GitHub Desktop.
#!/bin/bash
isExistApp = `pgrep httpd`
if [[ -n $isExistApp ]]; then
service httpd stop
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment