#!/bin/sh # THis program is installed in /root/bin. # trli-production makes sur the PATH has /root/bin at the start # This program only does the "graceful" command and let # the rest done by the original script echo `date` $* >>/root/apachectl.log if [ "$1" = "graceful" ] ; then if [ -x /usr/sbin/trli-production ] ; then trli-production restart webs elif [ -x /usr/sbin/solucorp-test.sh ] ; then solucorp-test.sh restart webs elif [ -x /usr/sbin/bolixo-production ] ; then bolixo-production restart webs else echo No rule to restart apache >&2 exit 1 fi else exec /usr/sbin/apachectl $* fi