I\'m trying to make nginx load configurations from /vagrant
mounted by vagrant automatically.
So I edited nginx.service to make
edit /lib/systemd/system/nginx.service
and change WantedBy
directive under Install
section...
WantedBy=vagrant.mount
You can check if the vagrant.mount
event exists via: systemctl list-units vagrant.mount
. You should see this:
UNIT LOAD ACTIVE SUB DESCRIPTION
vagrant.mount loaded active mounted /vagrant
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.