home | systemd - fix? mbsync*

This commit is contained in:
Don Harper 2023-12-26 23:15:48 -06:00
parent f614c30ae5
commit b8d47c96f7

View file

@ -1,39 +1,45 @@
{...}: {...}:
{ {
systemd.user = { systemd.user = {
timers.mbsync = {
Timer = {
OnUnitActiveSec = "5m";
AccuracySec = "1m";
};
Install = {
WantedBy = ["timers.target"];
};
};
services.mbsync = { services.mbsync = {
serviceConfig = { Service = {
Type = "oneshot";
Environment = "PATH=/run/current-system/sw/bin";
ExecStart = "/home/don/bin/mbsync"; ExecStart = "/home/don/bin/mbsync";
RuntimeMaxSec = "3m"; Environment = "PATH=/run/current-system/sw/bin";
Type = "oneshot";
}; };
Install = {
WantedBy = [ "mbsync.timer" ];
};
}; };
services."mbsync-all" = { services."mbsync-all" = {
serviceConfig = { Service = {
Type = "oneshot";
Environment = "PATH=/run/current-system/sw/bin";
ExecStart = "/home/don/bin/mbsync gmail"; ExecStart = "/home/don/bin/mbsync gmail";
RuntimeMaxSec = "3m"; Environment = "PATH=/run/current-system/sw/bin";
Type = "oneshot";
}; };
}; Install = {
WantedBy = ["mbsync-all.timer"];
timers.mbsync = {
timerConfig = {
OnBoot = "1m";
OnUnitActiveSec = "5m";
AccuracySec = "1m";
Unit = "mbsync.service";
}; };
}; };
timers."mbsync-all" = { timers."mbsync-all" = {
timerConfig = { Timer = {
OnBoot = "10m";
OnUnitActiveSec = "14m";
AccuracySec = "1m"; AccuracySec = "1m";
Unit = "mbsync-all.service"; OnUnitActiveSec = "14m";
};
Install = {
WantedBy = ["timers.target"];
}; };
}; };
}; };