restart iscsi on config change
This commit is contained in:
parent
b7d63326bb
commit
2ad73ec495
1 changed files with 8 additions and 0 deletions
|
|
@ -56,6 +56,14 @@ in {
|
||||||
device = "/Velaris/Containers";
|
device = "/Velaris/Containers";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.iscsi-target = {
|
||||||
|
restartTriggers = [
|
||||||
|
(builtins.attrNames config.services.target.config)
|
||||||
|
];
|
||||||
|
stopIfChanged = false;
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nfs.server = {
|
nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue