Skip to content

Instantly share code, notes, and snippets.

@m3nd3s
Created April 27, 2012 03:08
Show Gist options
  • Select an option

  • Save m3nd3s/2505357 to your computer and use it in GitHub Desktop.

Select an option

Save m3nd3s/2505357 to your computer and use it in GitHub Desktop.
IF test in initialize Apache Script
#...
if [ -x /usr/sbin/apache2 ] ; then
HAVE_APACHE2=1
else
echo "No apache MPM package installed"
exit 0
fi
. /lib/lsb/init-functions
test -f /etc/default/rcS && . /etc/default/rcS
test -f /etc/default/apache2 && . /etc/default/apache2
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment