fixed services

This commit is contained in:
John Lancaster
2024-12-29 14:12:53 -06:00
parent 2687c755a3
commit b8cba0a5b2
5 changed files with 7 additions and 6 deletions

View File

@@ -8,8 +8,8 @@ in
};
environment.systemPackages = with pkgs; [
(pkgs.writeShellScriptBin "pc" "systemctl status promtail.service")
(pkgs.writeShellScriptBin "pw" "journalctl -u promtail.service -b -n 25 -f")
(pkgs.writeShellScriptBin "promtail-check" "systemctl status promtail.service")
(pkgs.writeShellScriptBin "promtail-watch" "journalctl -u promtail.service -b -n 25 -f")
];
services.promtail = {

View File

@@ -9,8 +9,8 @@ in
sops.secrets."telegraf_influx_token" = { };
environment.systemPackages = with pkgs; [
(pkgs.writeShellScriptBin "tc" "systemctl status telegraf.service")
(pkgs.writeShellScriptBin "tw" "journalctl -u telegraf.service -b -n 25 -f")
(pkgs.writeShellScriptBin "telegraf-check" "systemctl status telegraf.service")
(pkgs.writeShellScriptBin "telegraf-watch" "journalctl -u telegraf.service -b -n 25 -f")
];
systemd.services.telegraf = {