Skip to content

Instantly share code, notes, and snippets.

@bronger
Created October 15, 2015 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bronger/11955b3828ce5a9da44b to your computer and use it in GitHub Desktop.
Save bronger/11955b3828ce5a9da44b to your computer and use it in GitHub Desktop.
#!/bin/bash
export MEMCACHED_SERVERS=`host memcached | awk '/has address/ { print $NF":11211" }'`
. /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment