make systemd services more robust
This commit is contained in:
parent
581526011b
commit
0d991812f2
2 changed files with 7 additions and 53 deletions
|
|
@ -26,10 +26,10 @@
|
|||
|
||||
systemd.user.services.bing-wallpaper = {
|
||||
Unit.Description = "Download and set Bing wallpaper of the day";
|
||||
Unit.StartLimitBurst = 5;
|
||||
Unit.StartLimitBurst = 6;
|
||||
Unit.StartLimitIntervalSec = "10m";
|
||||
Service.Restart = "on-failure";
|
||||
Service.RestartSec = "1m";
|
||||
Service.RestartSec = "10s";
|
||||
Service.Type = "oneshot";
|
||||
Service.ExecStart = pkgs.lib.getExe (
|
||||
pkgs.writeShellApplication {
|
||||
|
|
@ -68,6 +68,7 @@
|
|||
}
|
||||
);
|
||||
Service.ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart awww-setter.service";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
systemd.user.timers.bing-wallpaper = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue