1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

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}
'';
};
};