#!/bin/bash

if /etc/init.d/apache2 status &>/dev/null; then 
	was_running=true
else 
	was_running=false 
fi 
/etc/init.d/apache2 stop
/sbin/SuSEconfig --module apache2

if $was_running; then 
	/etc/init.d/apache2 start
fi
