On 26/11/2010 16:57, Ferenc Wagner wrote:
Michael Biebl<biebl@debian.org> writes:the apache init script already has a status method, why don't you use invoke-rc.d apache2 status>/dev/null 2>&1&& invoke-rc.d apache2 restartI like this idea. Any objections against the following code? if [ -f /etc/apache2/mods-enabled/shib2.load ] ; then if invoke-rc.d apache2 status>/dev/null ; then invoke-rc.d apache2 restart fi fi
It's fine for me (if it matters). Regards, -- Mehdi Dogguy مهدي الدڤي mehdi@{dogguy.org,debian.org}