Try making signal bridge more robust
This commit is contained in:
parent
22340bef2f
commit
f903b7972c
2 changed files with 5 additions and 4 deletions
|
@ -116,7 +116,6 @@ in
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "network-online.target" "signald.service" ];
|
wants = [ "network-online.target" "signald.service" ];
|
||||||
after = [ "network-online.target" "signald.service" ];
|
after = [ "network-online.target" "signald.service" ];
|
||||||
bindsTo = [ "signald.service" ];
|
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
old_umask=$(umask)
|
old_umask=$(umask)
|
||||||
|
@ -155,6 +154,8 @@ in
|
||||||
|
|
||||||
serviceConfig = rec {
|
serviceConfig = rec {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
WatchdogSignal = "SIGTERM";
|
||||||
|
WatchdogSec = "60m";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
|
||||||
ProtectSystem = "full";
|
ProtectSystem = "full";
|
||||||
|
|
|
@ -39,6 +39,9 @@ in
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
WatchdogSignal = "SIGTERM";
|
||||||
|
WatchdogSec = "60m";
|
||||||
|
Restart = "always";
|
||||||
|
|
||||||
PermissionsStartOnly = true;
|
PermissionsStartOnly = true;
|
||||||
RuntimeDirectory = "signald";
|
RuntimeDirectory = "signald";
|
||||||
|
@ -54,9 +57,6 @@ in
|
||||||
StateDirectory = "signald";
|
StateDirectory = "signald";
|
||||||
UMask = 0007;
|
UMask = 0007;
|
||||||
|
|
||||||
WatchdogSignal = "SIGTERM";
|
|
||||||
WatchdogSec = "20m";
|
|
||||||
Restart = "always";
|
|
||||||
|
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.signald}/bin/signald \
|
${pkgs.signald}/bin/signald \
|
||||||
|
|
Loading…
Reference in a new issue