[NixOS] Try to fix railbird bucket mount timeout

This commit is contained in:
2025-05-21 17:00:04 -06:00
parent e18c41cf90
commit b5ffc833fb

View File

@@ -89,6 +89,7 @@ in {
RemainAfterExit = true; RemainAfterExit = true;
Restart = "on-failure"; # Restart the service on failure Restart = "on-failure"; # Restart the service on failure
RestartSec = 5; # Wait 5 seconds before restarti RestartSec = 5; # Wait 5 seconds before restarti
TimeoutStopSec = 2;
ExecStartPre = [ ExecStartPre = [
"-${pkgs.util-linux}/bin/umount -f ${mount-path}" "-${pkgs.util-linux}/bin/umount -f ${mount-path}"
"${pkgs.coreutils}/bin/mkdir -p ${mount-path}" "${pkgs.coreutils}/bin/mkdir -p ${mount-path}"