Work around services startup before ZFS pool
This commit is contained in:
parent
7c3e61e51a
commit
000f56d295
|
@ -46,4 +46,19 @@ in {
|
||||||
requires = [ "systemd-udev-settle.service" ];
|
requires = [ "systemd-udev-settle.service" ];
|
||||||
after = [ "systemd-udev-settle.service" ];
|
after = [ "systemd-udev-settle.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# HACK: restart services dependent on ZFS afer mount
|
||||||
|
systemd.services.restart-services-mount = {
|
||||||
|
description = "Restart services after the ZFS dataset is mounted";
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
script = ''
|
||||||
|
sleep 5
|
||||||
|
systemctl restart syncthing
|
||||||
|
systemctl restart radicale
|
||||||
|
systemctl restart gitea
|
||||||
|
'';
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
requires = [ "sata-hat.service" ];
|
||||||
|
after = [ "vault.mount" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue