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