[archive] Attempts to fix the archive mount being stopped before the system sleeps.
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user