modules/ipfs-cluster: use strictMounts

This commit is contained in:
Max Headroom 2023-08-23 17:02:33 +02:00
parent 51d6cd005c
commit e35c18c39e

View file

@ -121,7 +121,7 @@ in {
environment.IPFS_CLUSTER_PATH = cfg.dataDir; environment.IPFS_CLUSTER_PATH = cfg.dataDir;
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
unitConfig.RequiresMountsFor = cfg.dataDir; strictMounts = [ cfg.dataDir ];
serviceConfig = { serviceConfig = {
# "" clears exec list (man systemd.service -> execStart) # "" clears exec list (man systemd.service -> execStart)
@ -143,6 +143,8 @@ in {
environment.IPFS_CLUSTER_PATH = cfg.dataDir; environment.IPFS_CLUSTER_PATH = cfg.dataDir;
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
strictMounts = [ cfg.dataDir ];
wants = [ "ipfs-cluster-init.service" ]; wants = [ "ipfs-cluster-init.service" ];
after = [ "ipfs-cluster-init.service" ]; after = [ "ipfs-cluster-init.service" ];