summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/temp/rst-issue.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-07-31 19:47:03 +0200
committermakefu <github@syntax-fehler.de>2017-07-31 19:47:03 +0200
commit923570f0f75b569eb1bb675dc0d0f18243ad6387 (patch)
tree2b074e9ef1e9aebe1ce5a92ac819958748587d80 /makefu/2configs/temp/rst-issue.nix
parent681042eedf2dbad2f999dec5cf43a018c52f2d7d (diff)
ma rst-issue: init
Diffstat (limited to 'makefu/2configs/temp/rst-issue.nix')
-rw-r--r--makefu/2configs/temp/rst-issue.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/makefu/2configs/temp/rst-issue.nix b/makefu/2configs/temp/rst-issue.nix
new file mode 100644
index 000000000..648831a98
--- /dev/null
+++ b/makefu/2configs/temp/rst-issue.nix
@@ -0,0 +1,21 @@
+{pkgs, ...}:
+let
+ itf = "enp0s25";
+in {
+ systemd.services.rst-issue = {
+ wantedBy = [ "multi-user.target" ];
+ script = ''
+ d=/var/cache/rst-issue
+ mkdir -p $d
+ cd $d
+ ITF=${itf}
+ now=$(date --rfc-3339=s | sed 's/ /T/')
+ ${pkgs.tcpdump}/bin/tcpdump -i $ITF -w run-$now.pcap &
+ echo "timestamp,$now" >> mtr.log
+ ${pkgs.mtr}/bin/mtr -4 --tcp bsi.bund.de www.thalesgroup.com nokia.com -C --show-ips -z >> mtr.log
+ kill %1
+ '';
+ startAt = "*:0/15"; # every 15 minutes
+
+ };
+}