[systemd-devel] nfs dependency in mysqld.service (best option)?
thomas at archlinux.org
Wed Mar 20 08:00:44 PDT 2013
Am 19.03.2013 23:13, schrieb Gary Artim:
> Thinking I should modify to add a "After=" for nfs.target, any one
> think this is the wrong approach or alternate options, I'd do
> something like:
Sufficiently recent systemd versions have the 'RequiresMountsFor='
option to deal with this, see 'man systemd.unit' for details.
In short, RequiresMountsFor=/path/to/your/databases adds the correct
mount units as dependencies, so mysqld.service not not started before
the /path/to/your/databases is accessible.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 901 bytes
Desc: OpenPGP digital signature
More information about the systemd-devel