Always restart goimapnotify

This commit is contained in:
2021-06-20 17:24:19 +02:00
parent 0d86259eda
commit 269679ac52

View File

@@ -49,7 +49,11 @@
script = ''
${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/uni.conf
'';
serviceConfig.Type = "simple";
serviceConfig = {
Type = "simple";
Restart = "always";
RestartSec = 20;
};
after = [ "network.target" ];
};
@@ -60,7 +64,11 @@
script = ''
${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf
'';
serviceConfig.Type = "simple";
serviceConfig = {
Type = "simple";
Restart = "always";
RestartSec = 20;
};
after = [ "network.target" ];
};
}