Always restart goimapnotify

This commit is contained in:
coolneng 2021-06-20 17:24:19 +02:00
parent 0d86259eda
commit 269679ac52
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 10 additions and 2 deletions

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" ];
};
}