#!/bin/sh echo From Active to Failed service apache2 stop echo Script finished