[archive] Attempts to fix the archive mount being stopped before the system sleeps.

This commit is contained in:
2026-05-23 22:06:53 -07:00
parent 2bd3cb15c8
commit 161246c575

View File

@@ -6,6 +6,8 @@
Unit = {
Description = "SSHFS mount for remote archive";
After = [ "network-online.target" ];
Before = [ "sleep.target" ];
StopPropagatedFrom = [ "sleep.target" ];
};
Service = {
@@ -22,7 +24,7 @@
drew@mcp:/tank/archive/drew \
%h/archive
'';
ExecStop = "/run/wrappers/bin/fusermount -u %h/mnt/archive";
ExecStop = "/run/wrappers/bin/fusermount -u %h/archive";
Restart = "on-failure";
RestartSec = "10s";
};