Created
March 28, 2014 19:25
-
-
Save grayghostvisuals/9840994 to your computer and use it in GitHub Desktop.
Start Apache Automagically when running vagrant up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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