I have a Vagrant box running Ubuntu 15.04, which has an upstart script that starts a service when the system boots. It has a start on vagrant-mounted
stanza because the service requires that the /vagrant directory be mounted by Vagrant.
I am now migrating this script to systemd (which I am completely new to) and cannot get the script to successfully run during boot because /vagrant is not mounted when the script is run. After=vagrant-mounted
doesn't work, but might help show what I'm trying to do.
How do I run a systemd unit when a Vagrant directory has been mounted during boot?
Note systemctl start my.service
does successfully start the service, and the service is systemctl enabled
'ed.