nfs service: create state directories

This commit is contained in:
Nikolay Amiantov 2017-02-05 02:10:57 +03:00
parent 1e2ce1fffb
commit 5b043ea361
2 changed files with 12 additions and 0 deletions

View File

@ -130,6 +130,11 @@ in
systemd.services.nfs-server =
{ enable = true;
wantedBy = [ "multi-user.target" ];
preStart =
''
mkdir -p /var/lib/nfs/v4recovery
'';
};
systemd.services.nfs-mountd =
@ -139,6 +144,8 @@ in
preStart =
''
mkdir -p /var/lib/nfs
${optionalString cfg.createMountPoints
''
# create export directories:

View File

@ -91,6 +91,11 @@ in
systemd.services.rpc-statd =
{ restartTriggers = [ nfsConfFile ];
preStart =
''
mkdir -p /var/lib/nfs/{sm,sm.bak}
'';
};
};