From 9d22855d121d6d1c6bee114caf973bd94343e976 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 26 Sep 2019 21:46:14 +0200 Subject: shack/*: RestartSec=15; Restart=always --- krebs/2configs/shack/glados/multi/wasser.nix | 2 +- krebs/2configs/shack/mqtt_sub.nix | 2 ++ krebs/2configs/shack/muell_caller.nix | 3 ++- krebs/2configs/shack/muell_mail.nix | 3 ++- krebs/2configs/shack/muellshack.nix | 3 ++- krebs/2configs/shack/node-light.nix | 3 ++- krebs/2configs/shack/powerraw.nix | 6 ++++-- krebs/2configs/shack/radioactive.nix | 3 ++- 8 files changed, 17 insertions(+), 8 deletions(-) (limited to 'krebs') diff --git a/krebs/2configs/shack/glados/multi/wasser.nix b/krebs/2configs/shack/glados/multi/wasser.nix index da5cac36d..2a6050afc 100644 --- a/krebs/2configs/shack/glados/multi/wasser.nix +++ b/krebs/2configs/shack/glados/multi/wasser.nix @@ -12,7 +12,7 @@ let retain = false; qos = 1; }; - seconds = 30; + seconds = 10; in { switch = [ diff --git a/krebs/2configs/shack/mqtt_sub.nix b/krebs/2configs/shack/mqtt_sub.nix index a8427dde4..bd0b6df85 100644 --- a/krebs/2configs/shack/mqtt_sub.nix +++ b/krebs/2configs/shack/mqtt_sub.nix @@ -29,6 +29,8 @@ in { User = "nobody"; ExecStart = "${pkg}/bin/sub-new"; PrivateTmp = true; + Restart = "always"; + RestartSec = "15"; }; }; } diff --git a/krebs/2configs/shack/muell_caller.nix b/krebs/2configs/shack/muell_caller.nix index 19768cb2e..33f6b8c89 100644 --- a/krebs/2configs/shack/muell_caller.nix +++ b/krebs/2configs/shack/muell_caller.nix @@ -33,9 +33,10 @@ in { chown nobody /tmp/tell.json ''; ExecStart = "${pkg}/bin/call-muell --cfg /tmp/tell.json --mode mpd loop 60"; - Restart = "always"; PrivateTmp = true; PermissionsStartOnly = true; + Restart = "always"; + RestartSec = "15"; }; }; } diff --git a/krebs/2configs/shack/muell_mail.nix b/krebs/2configs/shack/muell_mail.nix index 39d49918d..a41dbc977 100644 --- a/krebs/2configs/shack/muell_mail.nix +++ b/krebs/2configs/shack/muell_mail.nix @@ -26,8 +26,9 @@ in { WorkingDirectory = home; PermissionsStartOnly = true; ExecStart = "${pkg}/bin/muell_mail"; - Restart = "always"; PrivateTmp = true; + Restart = "always"; + RestartSec = "15"; }; }; } diff --git a/krebs/2configs/shack/muellshack.nix b/krebs/2configs/shack/muellshack.nix index 1e6843bdf..9168c9ba7 100644 --- a/krebs/2configs/shack/muellshack.nix +++ b/krebs/2configs/shack/muellshack.nix @@ -36,8 +36,9 @@ in { ''; WorkingDirectory = home; ExecStart = "${pkg}/bin/muellshack"; - Restart = "always"; PrivateTmp = true; + Restart = "always"; + RestartSec = "15"; }; }; } diff --git a/krebs/2configs/shack/node-light.nix b/krebs/2configs/shack/node-light.nix index 63772f182..8cf0007b8 100644 --- a/krebs/2configs/shack/node-light.nix +++ b/krebs/2configs/shack/node-light.nix @@ -46,8 +46,9 @@ in { ''; WorkingDirectory = home; ExecStart = "${pkg}/bin/node-light"; - Restart = "always"; PrivateTmp = true; + Restart = "always"; + RestartSec = "15"; }; }; } diff --git a/krebs/2configs/shack/powerraw.nix b/krebs/2configs/shack/powerraw.nix index af3f129c1..4118e7a72 100644 --- a/krebs/2configs/shack/powerraw.nix +++ b/krebs/2configs/shack/powerraw.nix @@ -22,8 +22,9 @@ in { serviceConfig = { User = "powermeter"; ExecStart = "${pkg}/bin/powermeter-serial2mqtt"; - Restart = "always"; PrivateTmp = true; + Restart = "always"; + RestartSec = "15"; }; }; @@ -33,8 +34,9 @@ in { serviceConfig = { User = "powermeter"; ExecStart = "${pkg}/bin/powermeter-mqtt2socket"; - Restart = "always"; PrivateTmp = true; + Restart = "always"; + RestartSec = "15"; }; }; diff --git a/krebs/2configs/shack/radioactive.nix b/krebs/2configs/shack/radioactive.nix index 566146d6e..286a73aae 100644 --- a/krebs/2configs/shack/radioactive.nix +++ b/krebs/2configs/shack/radioactive.nix @@ -27,9 +27,10 @@ in { serviceConfig = { User = "nobody"; # TODO separate user ExecStart = "${pkg}/bin/radioactive-add-many loop 60"; - Restart = "always"; PrivateTmp = true; PermissionsStartOnly = true; + Restart = "always"; + RestartSec = "15"; }; }; } -- cgit v1.2.3 From bce0555f05b261927dbbfb3e59d4ee6b927bf704 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 13 Oct 2019 02:30:57 +0200 Subject: move shack prometheus from wolf to puyak --- krebs/1systems/puyak/config.nix | 2 ++ krebs/1systems/wolf/config.nix | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'krebs') diff --git a/krebs/1systems/puyak/config.nix b/krebs/1systems/puyak/config.nix index 6321b6cc4..6493c6df4 100644 --- a/krebs/1systems/puyak/config.nix +++ b/krebs/1systems/puyak/config.nix @@ -14,6 +14,8 @@ + + ## Collect local statistics via collectd and send to collectd diff --git a/krebs/1systems/wolf/config.nix b/krebs/1systems/wolf/config.nix index 6e53637e6..e47c43fe1 100644 --- a/krebs/1systems/wolf/config.nix +++ b/krebs/1systems/wolf/config.nix @@ -62,9 +62,9 @@ in # prometheus.shack - + # - + # # grafana.shack -- cgit v1.2.3 From aa3a15283a9603554fa34d380b189780af9a255c Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 13 Oct 2019 02:31:48 +0200 Subject: glados/wasser: water for 20 seconds instead of 10 --- krebs/2configs/shack/glados/multi/wasser.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'krebs') diff --git a/krebs/2configs/shack/glados/multi/wasser.nix b/krebs/2configs/shack/glados/multi/wasser.nix index 2a6050afc..578bb0750 100644 --- a/krebs/2configs/shack/glados/multi/wasser.nix +++ b/krebs/2configs/shack/glados/multi/wasser.nix @@ -12,7 +12,7 @@ let retain = false; qos = 1; }; - seconds = 10; + seconds = 20; in { switch = [ -- cgit v1.2.3 From 0459d44921fab70ad876ffe40d61283da2e6be06 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 13 Oct 2019 02:32:55 +0200 Subject: ma pigstarter: revive dead links in vulnerability disclosures --- krebs/3modules/makefu/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'krebs') diff --git a/krebs/3modules/makefu/default.nix b/krebs/3modules/makefu/default.nix index ab24d9096..f9e8d485c 100644 --- a/krebs/3modules/makefu/default.nix +++ b/krebs/3modules/makefu/default.nix @@ -184,7 +184,7 @@ in { nixos.unstable IN CNAME krebscode.github.io. o.euer IN A ${nets.internet.ip4.addr} photostore IN A ${nets.internet.ip4.addr} - pigstarter IN A ${nets.internet.ip4.addr} + pigstarter IN CNAME makefu.github.io. share.euer IN A ${nets.internet.ip4.addr} wg.euer IN A ${nets.internet.ip4.addr} wiki.euer IN A ${nets.internet.ip4.addr} -- cgit v1.2.3 From 4d013908378e6c25b3dae33fc9555e4d0881e28e Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 14 Oct 2019 11:36:49 +0200 Subject: nixpkgs: 88bbb3c -> 7952807 --- krebs/nixpkgs.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'krebs') diff --git a/krebs/nixpkgs.json b/krebs/nixpkgs.json index b43fb07fc..01230b439 100644 --- a/krebs/nixpkgs.json +++ b/krebs/nixpkgs.json @@ -1,7 +1,7 @@ { "url": "https://github.com/NixOS/nixpkgs-channels", - "rev": "88bbb3c809699f44bf844094a2cd7874e0ea4a39", - "date": "2019-10-09T11:39:27+02:00", - "sha256": "0vqwws2hhsx1g4kdhm2sz9m71n0jvjvhgv9ia7fjz679s3341032", + "rev": "7952807791daf3c60c99f10f371f732d897e3de8", + "date": "2019-10-13T01:14:01+02:00", + "sha256": "1h9wg0arazbyj8xfgvfhzn2gw6ya8sgcxscy1n5j182b5xri1xdk", "fetchSubmodules": false } -- cgit v1.2.3