Skip to content

Instantly share code, notes, and snippets.

@grayghostvisuals
Created March 28, 2014 19:25
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 grayghostvisuals/9840994 to your computer and use it in GitHub Desktop.
Save grayghostvisuals/9840994 to your computer and use it in GitHub Desktop.
Start Apache Automagically when running vagrant up
sudo vim /etc/init/httpd-start.conf
description "start httpd service after shared folder is mounted"
start on vagrant-mounted
#restart if die
respawn
#creates child processes
expect fork
#hit it
exec sudo service httpd start
(wq)
(exit)
(vagrant halt)
(vagrant up)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment