Vagrant, VirtualBox, Supervisord: When is synced folder mounted? -
i'm running virtual machine supervisord start , maintain several important background processes. create virtual machine vagrant , virtualbox, , provision puppet. when machine starts supervisord grabs .conf files in /etc/supervisor/conf.d , tries run them. unfortunately, when run
vagrant supervisord starts trying run files in conf.d immediately, before synced folders shared. starting background processes xvfb runs fine, starting stat tracker, resides within synced folder, wont possible. in fact, see in supervisord logs multiple attempts start process, complaining can't find file, , giving up. then, once machine running can ssh in , run exact same command in .conf file , start process myself.
i have created intermediary script loop continuously, waiting synced folder become available, , starting processes want. in case, supervisor not have way make sure process remains running, , feels hack.
is there cleaner way this? maybe within puppet or vagrant?
after more googling found solved problem: http://razius.com/articles/launching-services-after-vagrant-mount/
Comments
Post a Comment