Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ! systemctl is-active apache2.service > /dev/null; then
- echo "el servicio apache2 esta detenido"
- echo "iniciando servicio..."
- systemctl start apache2
- echo "..."
- journalctl --no-pager -u apache2.service | tail -3
- else
- echo "el servicio esta en ejecucion.."
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement