fix: persist cache cleanup user service
This commit is contained in:
parent
b30426a5e8
commit
064c9c7381
@ -141,7 +141,6 @@ in
|
|||||||
services."persist-cache-cleanup-${username}" = {
|
services."persist-cache-cleanup-${username}" = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Cleaning up cache files and directories for user ${username}";
|
Description = "Cleaning up cache files and directories for user ${username}";
|
||||||
Wants = [ "modprobed-db.timer" ];
|
|
||||||
};
|
};
|
||||||
Service =
|
Service =
|
||||||
let
|
let
|
||||||
@ -162,13 +161,9 @@ in
|
|||||||
'';
|
'';
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
};
|
};
|
||||||
Install.WantedBy = [ "default.target" ];
|
|
||||||
};
|
};
|
||||||
timers."persist-cache-cleanup-${username}" = {
|
timers."persist-cache-cleanup-${username}" = {
|
||||||
Unit = {
|
Unit.Description = "Run persist-cache-cleanup-${username} service by set schedule";
|
||||||
Description = "Run persist-cache-cleanup-${username} service by set schedule";
|
|
||||||
PartOf = [ "persist-cache-cleanup-${username}.service" ];
|
|
||||||
};
|
|
||||||
Timer = {
|
Timer = {
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
OnCalendar = cfg.cache.clean.dates;
|
OnCalendar = cfg.cache.clean.dates;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user