Bash Shell # !/bin/bash if [ `pgrep apache2 -c` -le "0" ]; then /etc/init.d/apache2 stop pkill -u www-data /etc/init.d/apache2 start echo "Arrancando Apache" fi1234567# !/bin/bashif [ `pgrep apache2 -c` -le "0" ]; then /etc/init.d/apache2 stop pkill -u www-data /etc/init.d/apache2 start echo "Arrancando Apache"fi Publicado el día 21 de marzo de 2014CATEGORÍAS Bash