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