[systemd-devel] nfs dependency in mysqld.service (best option)?

Thomas Bächler 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...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130320/cdb7e3fc/attachment.pgp>


More information about the systemd-devel mailing list