Rclone mount: restart

This commit is contained in:
Filippo Berto 2024-11-08 12:59:07 +01:00
parent 5e16829245
commit ccab840f78
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -19,6 +19,8 @@ in
Type = "simple";
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p ${path}";
ExecStart = "${pkgs.rclone}/bin/rclone --config ${rclone_config} mount ${name}:/ ${path} -v --vfs-cache-mode=writes";
Restart = "on-failure";
RestartSec = "30s";
};
};
})