From 1a030dec60bd1b5c99420dee579738af9b4d5f68 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Mon, 11 Feb 2019 11:31:46 +0100 Subject: [PATCH] nix/os/devices/vmd32387: debug sshd --- .../vmd32387.contaboserver.net/system.nix | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/nix/os/devices/vmd32387.contaboserver.net/system.nix b/nix/os/devices/vmd32387.contaboserver.net/system.nix index abf32e6..b2ca1a5 100644 --- a/nix/os/devices/vmd32387.contaboserver.net/system.nix +++ b/nix/os/devices/vmd32387.contaboserver.net/system.nix @@ -52,6 +52,27 @@ in { services.spice-vdagentd.enable = true; services.qemuGuest.enable = true; + systemd.services."sshd-status" = { + enable = true; + description = "sshd-status service"; + path = [ pkgs.systemd ]; + script = '' + systemctl status sshd | grep -i tasks + ''; + }; + + systemd.timers."sshd-status" = { + description = "Timer to trigger sshd-status periodically"; + enable = true; + wantedBy = [ "timer.target" "multi-user.target" ]; + timerConfig = { + OnActiveSec="5s"; + OnUnitActiveSec="5s"; + AccuracySec="1s"; + Unit = "sshd-status.service"; + }; + }; + boot.initrd.network = { enable = true; udhcpc.extraArgs = [ "-x hostname:${config.networking.hostName}" ];