bypass startup limits in the service files
This commit is contained in:
parent
b247f9491f
commit
fa82b10cbf
|
@ -76,36 +76,42 @@
|
||||||
|
|
||||||
systemd.services.paperless-web-bridge = {
|
systemd.services.paperless-web-bridge = {
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.openssh}/bin/ssh -v -NR 3004:localhost:3004 -p 55555 useracc@beepboop.systems
|
${pkgs.openssh}/bin/ssh -v -NR 3004:localhost:3004 -oExitOnForwardFailure=yes -p 55555 useracc@beepboop.systems
|
||||||
'';
|
'';
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" "ankisyncd.service" ];
|
after = [ "network.target" "ankisyncd.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
StartLimitInterval = 0;
|
||||||
|
StartLimitBurst = 10000;
|
||||||
RestartSec = "0s";
|
RestartSec = "0s";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.radicale-web-bridge = {
|
systemd.services.radicale-web-bridge = {
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.openssh}/bin/ssh -v -NR 5232:localhost:5232 -p 55555 useracc@beepboop.systems
|
${pkgs.openssh}/bin/ssh -v -NR 5232:localhost:5232 -oExitOnForwardFailure=yes -p 55555 useracc@beepboop.systems
|
||||||
'';
|
'';
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" "ankisyncd.service" ];
|
after = [ "network.target" "ankisyncd.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
StartLimitInterval = 0;
|
||||||
|
StartLimitBurst = 10000;
|
||||||
RestartSec = "0s";
|
RestartSec = "0s";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.internal-ssh-bridge = {
|
systemd.services.internal-ssh-bridge = {
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.openssh}/bin/ssh -v -NR 2222:localhost:2222 -p 55555 useracc@beepboop.systems
|
${pkgs.openssh}/bin/ssh -v -NR 2222:localhost:2222 -oExitOnForwardFailure=yes -p 55555 useracc@beepboop.systems
|
||||||
'';
|
'';
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" "ankisyncd.service" ];
|
after = [ "network.target" "ankisyncd.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
StartLimitInterval = 0;
|
||||||
|
StartLimitBurst = 10000;
|
||||||
RestartSec = "0s";
|
RestartSec = "0s";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue