1
0
Fork 0

Try making signal bridge more robust

This commit is contained in:
Malte Brandy 2021-12-01 12:22:37 +01:00
parent 22340bef2f
commit f903b7972c
2 changed files with 5 additions and 4 deletions

View file

@ -116,7 +116,6 @@ in
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" "signald.service" ];
after = [ "network-online.target" "signald.service" ];
bindsTo = [ "signald.service" ];
preStart = ''
old_umask=$(umask)
@ -155,6 +154,8 @@ in
serviceConfig = rec {
Type = "simple";
WatchdogSignal = "SIGTERM";
WatchdogSec = "60m";
Restart = "always";
ProtectSystem = "full";

View file

@ -39,6 +39,9 @@ in
serviceConfig = {
Type = "simple";
WatchdogSignal = "SIGTERM";
WatchdogSec = "60m";
Restart = "always";
PermissionsStartOnly = true;
RuntimeDirectory = "signald";
@ -54,9 +57,6 @@ in
StateDirectory = "signald";
UMask = 0007;
WatchdogSignal = "SIGTERM";
WatchdogSec = "20m";
Restart = "always";
ExecStart = ''
${pkgs.signald}/bin/signald \