Skip to content

Instantly share code, notes, and snippets.

@anibalardid
Created April 16, 2019 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anibalardid/482744bbdee47838687fa607b5db83f8 to your computer and use it in GitHub Desktop.
Save anibalardid/482744bbdee47838687fa607b5db83f8 to your computer and use it in GitHub Desktop.
#Para iniciar servicio de apache si esta caido, desde el cron por ejemplo
*/5 * * * * /etc/init.d/apache2 status | grep -q running || /etc/init.d/apache2 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment